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.
This commit is contained in:
Jimmy Tang 2011-03-23 08:15:39 +00:00 committed by Joey Hess
parent 7da3dc5984
commit 4440ecf4a7

View file

@ -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"