Revert "Define (__APPLE__) in StatFS"

This reverts commit 4440ecf4a7.

Turns out that it is reporting a block size of 0 and so all bogus.
This commit is contained in:
Joey Hess 2011-03-23 12:23:13 -04:00
parent 4440ecf4a7
commit 0dac2b4f6c

View file

@ -53,7 +53,7 @@ import Foreign.C.String
import Data.ByteString (useAsCString) import Data.ByteString (useAsCString)
import Data.ByteString.Char8 (pack) import Data.ByteString.Char8 (pack)
#if defined (__FreeBSD__) || defined(__APPLE__) #if defined (__FreeBSD__)
# include <sys/param.h> # include <sys/param.h>
# include <sys/mount.h> # include <sys/mount.h>
#else #else
@ -84,7 +84,7 @@ data CStatfs
#ifdef UNKNOWN #ifdef UNKNOWN
#warning free space checking code not available for this OS #warning free space checking code not available for this OS
#else #else
#if defined(__FreeBSD__) || defined(__APPLE__) #if defined(__FreeBSD__)
foreign import ccall unsafe "sys/mount.h statfs" foreign import ccall unsafe "sys/mount.h statfs"
#else #else
foreign import ccall unsafe "sys/vfs.h statfs64" foreign import ccall unsafe "sys/vfs.h statfs64"