aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib556.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib556.c')
-rw-r--r--tests/libtest/lib556.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/libtest/lib556.c b/tests/libtest/lib556.c
index 0e3949da3..579321ed9 100644
--- a/tests/libtest/lib556.c
+++ b/tests/libtest/lib556.c
@@ -12,6 +12,17 @@
#include "memdebug.h"
+/* For Windows, mainly (may be moved in a config file?) */
+#ifndef STDIN_FILENO
+ #define STDIN_FILENO 0
+#endif
+#ifndef STDOUT_FILENO
+ #define STDOUT_FILENO 1
+#endif
+#ifndef STDERR_FILENO
+ #define STDERR_FILENO 2
+#endif
+
int test(char *URL)
{
CURLcode res;
@@ -53,7 +64,6 @@ int test(char *URL)
if(iolen)
/* send received stuff to stdout */
write(STDOUT_FILENO, buf, iolen);
-
total += iolen;
} while(((res == CURLE_OK) || (res == CURLE_AGAIN)) && (total < 129));