Don't include sys/timeb.h on FreeBSD.
authorGeoffrey Mainland <mainland@apeiron.net>
Wed, 25 Apr 2012 21:38:35 +0000 (22:38 +0100)
committerGeoffrey Mainland <mainland@apeiron.net>
Wed, 25 Apr 2012 21:38:35 +0000 (22:38 +0100)
sys/timeb.h is deprecated on FreeBSD meaning validation fails quite early
without this patch.

include/HsTime.h

index 544cd02..638ad6c 100644 (file)
@@ -27,7 +27,7 @@
 #if HAVE_TIME_H
 #include <time.h>
 #endif
-#if HAVE_SYS_TIMEB_H
+#if HAVE_SYS_TIMEB_H && !defined(__FreeBSD__)
 #include <sys/timeb.h>
 #endif