diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-23 13:10:20 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-23 13:10:20 -0400 |
commit | 0cd70cb5c0c33ce5db2a68fb0c76341f9d71f400 (patch) | |
tree | 86090789c6c0bb5afcbf70dafd310e5d2a3f9ed3 | |
parent | b9c4c006bdc8f0317d0598f05b45e4fdc1102a6c (diff) |
kFreeBSD support
Tested on Debian kfreebsd-amd64. The BSD #includes worked. Both statfs64
and statfs worked. Using statfs to keep the same as general freebsd, and
because I didn't try it on 32 bit.
-rw-r--r-- | StatFS.hsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/StatFS.hsc b/StatFS.hsc index dd0c90beb..0828f1378 100644 --- a/StatFS.hsc +++ b/StatFS.hsc @@ -53,7 +53,7 @@ import Foreign.C.String import Data.ByteString (useAsCString) import Data.ByteString.Char8 (pack) -#if defined (__FreeBSD__) || defined (__APPLE__) +#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__) # include <sys/param.h> # include <sys/mount.h> #else @@ -87,7 +87,7 @@ data CStatfs #if defined(__APPLE__) foreign import ccall unsafe "sys/mount.h statfs64" #else -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined (__FreeBSD_kernel__) foreign import ccall unsafe "sys/mount.h statfs" #else foreign import ccall unsafe "sys/vfs.h statfs64" |