Include sys/timeb.h
authorIan Lynagh <igloo@earth.li>
Thu, 24 May 2007 10:31:34 +0000 (10:31 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 24 May 2007 10:31:34 +0000 (10:31 +0000)
configure.ac
include/HsTime.h

index bb576b0..bfc453e 100644 (file)
@@ -11,7 +11,7 @@ AC_ARG_WITH([cc],
 AC_PROG_CC()
 
 # check for specific header (.h) files that we are interested in
-AC_CHECK_HEADERS([sys/time.h time.h])
+AC_CHECK_HEADERS([sys/time.h sys/timeb.h time.h])
 
 AC_CHECK_FUNCS([ftime gmtime_r localtime_r gettimeofday])
 
index 2ddf61c..025de83 100644 (file)
@@ -21,6 +21,9 @@
 #if HAVE_TIME_H
 #include <time.h>
 #endif
+#if HAVE_SYS_TIMEB_H
+#include <sys/timeb.h>
+#endif
 
 extern long *__hscore_timezone( void );
 extern char **__hscore_tzname( void );