aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-01-23 06:11:11 +0000
committerYang Tse <yangsita@gmail.com>2008-01-23 06:11:11 +0000
commit9bd28a021fc3884f0350ddb8493511074e1a4b65 (patch)
tree5a3e18749e092d053a6c14adff85e48c6631a25e /src
parent5ee3f41e0db53fea9b0521a137c8e412f053d476 (diff)
STDIN_FILENO, STDOUT_FILENO and STDERR_FILENO clone macros
Diffstat (limited to 'src')
-rw-r--r--src/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 4027ea42f..7475a1e7e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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