[commit: old-time] master: Don't include sys/timeb.h on FreeBSD. (bb01a55)
Geoffrey Mainland
gmainlan at microsoft.com
Wed Apr 25 23:39:20 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/old-time
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/bb01a551a349b9a85dda8ac59b800bd951958e3b
>---------------------------------------------------------------
commit bb01a551a349b9a85dda8ac59b800bd951958e3b
Author: Geoffrey Mainland <mainland at apeiron.net>
Date: Wed Apr 25 22:38:35 2012 +0100
Don't include sys/timeb.h on FreeBSD.
sys/timeb.h is deprecated on FreeBSD meaning validation fails quite early
without this patch.
>---------------------------------------------------------------
include/HsTime.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/HsTime.h b/include/HsTime.h
index 544cd02..638ad6c 100644
--- a/include/HsTime.h
+++ b/include/HsTime.h
@@ -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
More information about the Cvs-libraries
mailing list