summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-10 14:37:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-10 14:37:39 +0000
commit2ff2810a92c7279ff039e423767929d75d3bb751 (patch)
treecaec23bb647b760b3ee81ed25173e4bb3dbc94de
parent20d9c1b30d305adf459a6bb496e410a8ad7c8169 (diff)
downloadgnurl-2ff2810a92c7279ff039e423767929d75d3bb751.tar.gz
gnurl-2ff2810a92c7279ff039e423767929d75d3bb751.tar.bz2
gnurl-2ff2810a92c7279ff039e423767929d75d3bb751.zip
AIX wants sys/select.h for the fd_set stuff in curl/multi.h, and even though
it is a bit ugly work-around to add this here, it is still a working work- around! ;-)
-rw-r--r--src/config.h.in5
-rw-r--r--src/writeout.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/config.h.in b/src/config.h.in
index 31825bf65..5658fcdcf 100644
--- a/src/config.h.in
+++ b/src/config.h.in
@@ -17,5 +17,8 @@
/* Define if you have the <utime.h> header file */
#undef HAVE_UTIME_H
-/* Define if you have thhe <sys/utime.h> header file */
+/* Define if you have the <sys/utime.h> header file */
#undef HAVE_SYS_UTIME_H
+
+/* Define if you have the <sys/select.h> header file */
+#undef HAVE_SYS_SELECT_H
diff --git a/src/writeout.c b/src/writeout.c
index c0be70b2f..343e96ffc 100644
--- a/src/writeout.c
+++ b/src/writeout.c
@@ -21,9 +21,15 @@
* $Id$
*****************************************************************************/
+#include "setup.h"
+
#include <stdio.h>
#include <string.h>
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+
#include <curl/curl.h>
#define _MPRINTF_REPLACE /* we want curl-functions instead of native ones */