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

include/HsBase.h

index 70e85db..5c4c141 100644 (file)
@@ -81,7 +81,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
 #if HAVE_WINDOWS_H