aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-06-03 08:07:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-06-03 08:07:06 +0000
commitceef206c21a763095ce407982a4963cdbb8afa92 (patch)
tree684696f387fc542d8b37f7c8f25a2062d4e42bcb /src
parent7c6424f0a92fa45181d56113adbe5eae95a2e89d (diff)
include the time headers just like we used to do in the curl/curl.h header
once upon the time
Diffstat (limited to 'src')
-rw-r--r--src/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 6585adc81..3a7139d81 100644
--- a/src/main.c
+++ b/src/main.c
@@ -50,10 +50,19 @@
#include <winsock.h>
#endif
-#ifdef HAVE_SYS_TIME_H
+#ifdef TIME_WITH_SYS_TIME
+/* We can include both fine */
#include <sys/time.h>
+#include <time.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#else
+# include <time.h>
+#endif
#endif
+
#include "version.h"
#ifdef HAVE_IO_H /* typical win32 habit */