$OpenBSD: patch-src_StatFS_hsc,v 1.1 2011/06/13 21:23:04 kili Exp $ --- src/StatFS.hsc.orig Sun Mar 27 19:16:24 2011 +++ src/StatFS.hsc Mon May 2 20:32:56 2011 @@ -23,8 +23,11 @@ import Foreign.C.String import Data.ByteString (useAsCString) import Data.ByteString.Char8 (pack) -#if defined (__FreeBSD__) || defined (__APPLE__) +#if (defined(__unix__) || defined(unix)) && !defined(USG) # include +#endif + +#if defined(BSD4_4) # include #else # include @@ -47,7 +50,7 @@ data FileSystemStats = FileSystemStats { data CStatfs -#if defined (__FreeBSD__) || defined (__APPLE__) +#if defined(BSD4_4) foreign import ccall unsafe "sys/mount.h statfs" #else foreign import ccall unsafe "sys/vfs.h statfs64"