diff options
author | Jimmy Tang <jtang@tchpc.tcd.ie> | 2011-03-23 08:15:39 +0000 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-23 11:11:55 -0400 |
commit | 4440ecf4a74b85341d5ecc1ecb1a9349b6fc5d3b (patch) | |
tree | 02d5b28804699ea4bef413b25b65e04c45a50f4b /StatFS.hsc | |
parent | 7da3dc59841180ca65b834c43832cf8cbfd5b8ba (diff) |
Define (__APPLE__) in StatFS
At least on OSX 10.6.6 it appears to have the same defintions as
FreeBSD. The build process doesn't complain and the code is enabled,
this needs to be tested and checked more.
Diffstat (limited to 'StatFS.hsc')
-rw-r--r-- | StatFS.hsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/StatFS.hsc b/StatFS.hsc index 8b453dc19..45fd7e4db 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__) +#if defined (__FreeBSD__) || defined(__APPLE__) # include <sys/param.h> # include <sys/mount.h> #else @@ -84,7 +84,7 @@ data CStatfs #ifdef UNKNOWN #warning free space checking code not available for this OS #else -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__APPLE__) foreign import ccall unsafe "sys/mount.h statfs" #else foreign import ccall unsafe "sys/vfs.h statfs64" |