[commit: base] master: Don't include sys/timeb.h on FreeBSD. (aa93a51)
Geoffrey Mainland
gmainlan at microsoft.com
Wed Apr 25 23:38:08 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/base
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/aa93a51a827004a9b74bc51d9d0f46d4564a2970
>---------------------------------------------------------------
commit aa93a51a827004a9b74bc51d9d0f46d4564a2970
Author: Geoffrey Mainland <mainland at apeiron.net>
Date: Wed Apr 25 22:34:26 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/HsBase.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/HsBase.h b/include/HsBase.h
index 70e85db..5c4c141 100644
--- a/include/HsBase.h
+++ b/include/HsBase.h
@@ -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
More information about the Cvs-libraries
mailing list