Inclusion of time header files based on header existance
authorYang Tse <yangsita@gmail.com>
Thu, 12 Oct 2006 03:57:33 +0000 (03:57 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 12 Oct 2006 03:57:33 +0000 (03:57 +0000)
lib/timeval.h

index 8ab7a44012b52cba73d863f0e10647ab95f7d3cb..5decc892b13e0056d254341e4d54eaeab2f1d8ad 100644 (file)
 
 #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