[commit: packages/unix] master: Fix build on OS X (76584fa)

git at git.haskell.org git at git.haskell.org
Sun Oct 13 00:02:31 UTC 2013


Repository : ssh://git@git.haskell.org/unix

On branch  : master
Link       : http://git.haskell.org/packages/unix.git/commitdiff/76584fa84022251bd91a80a4df282e3726d66687

>---------------------------------------------------------------

commit 76584fa84022251bd91a80a4df282e3726d66687
Author: Bryan O'Sullivan <bos at serpentine.com>
Date:   Sat Oct 12 17:02:23 2013 -0700

    Fix build on OS X


>---------------------------------------------------------------

76584fa84022251bd91a80a4df282e3726d66687
 System/Posix/Files/Common.hsc |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/System/Posix/Files/Common.hsc b/System/Posix/Files/Common.hsc
index 704332c..3056014 100644
--- a/System/Posix/Files/Common.hsc
+++ b/System/Posix/Files/Common.hsc
@@ -85,7 +85,10 @@ import System.IO.Unsafe
 import Data.Bits
 #if defined(HAVE_STRUCT_STAT_ST_CTIM) || \
     defined(HAVE_STRUCT_STAT_ST_MTIM) || \
-    defined(HAVE_STRUCT_STAT_ST_ATIM)
+    defined(HAVE_STRUCT_STAT_ST_ATIM) || \
+    defined(HAVE_STRUCT_STAT_ST_ATIMESPEC) || \
+    defined(HAVE_STRUCT_STAT_ST_MTIMESPEC) || \
+    defined(HAVE_STRUCT_STAT_ST_CTIMESPEC)
 import Data.Int
 import Data.Ratio
 #endif



More information about the ghc-commits mailing list