]> granicus.if.org Git - curl/commitdiff
STDIN_FILENO, STDOUT_FILENO and STDERR_FILENO clone macros
authorYang Tse <yangsita@gmail.com>
Wed, 23 Jan 2008 06:11:11 +0000 (06:11 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 23 Jan 2008 06:11:11 +0000 (06:11 +0000)
src/main.c

index 4027ea42fc84e3d300deb57241d2c41b5ebb30ca..7475a1e7eb9392591ec7eb588d75b1481bc6df85 100644 (file)
@@ -158,6 +158,18 @@ char **__crt0_glob_function (char *arg)
 #endif /* __DJGPP__ */
 #endif /* MSDOS */
 
+#ifndef STDIN_FILENO
+#define STDIN_FILENO  fileno(stdin)
+#endif
+
+#ifndef STDOUT_FILENO
+#define STDOUT_FILENO  fileno(stdout)
+#endif
+
+#ifndef STDERR_FILENO
+#define STDERR_FILENO  fileno(stderr)
+#endif
+
 #define CURL_PROGRESS_STATS 0 /* default progress display */
 #define CURL_PROGRESS_BAR   1