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:
parent
7da3dc5984
commit
4440ecf4a7
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue