aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-10-12 03:57:33 +0000
committerYang Tse <yangsita@gmail.com>2006-10-12 03:57:33 +0000
commit22307ae0eef8e987229c280ea4c78447beac839f (patch)
tree557a30fa53e86e69167baae18bdc3cbe83a6946f /lib
parente150150d9f1e0578c85af05de15ab6336066cec1 (diff)
Inclusion of time header files based on header existance
Diffstat (limited to 'lib')
-rw-r--r--lib/timeval.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/timeval.h b/lib/timeval.h
index 8ab7a4401..5decc892b 100644
--- a/lib/timeval.h
+++ b/lib/timeval.h
@@ -30,11 +30,14 @@
#include "setup.h"
-#ifdef WIN32
-#include <time.h>
-#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#ifdef TIME_WITH_SYS_TIME
+#include <time.h>
+#endif
+#else
+#ifdef HAVE_TIME_H
+#include <time.h>
#endif
#endif