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:
parent
4440ecf4a7
commit
0dac2b4f6c
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__) || defined(__APPLE__)
|
||||
#if defined (__FreeBSD__)
|
||||
# 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__) || defined(__APPLE__)
|
||||
#if defined(__FreeBSD__)
|
||||
foreign import ccall unsafe "sys/mount.h statfs"
|
||||
#else
|
||||
foreign import ccall unsafe "sys/vfs.h statfs64"
|
||||
|
|
Loading…
Reference in a new issue