summaryrefslogtreecommitdiff
path: root/StatFS.hsc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-23 12:23:13 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-23 12:23:13 -0400
commit0dac2b4f6ce0a616711a24e964c138055607e35e (patch)
tree0b356d58249aad1628769322ad9653ad55befe33 /StatFS.hsc
parent4440ecf4a74b85341d5ecc1ecb1a9349b6fc5d3b (diff)
Revert "Define (__APPLE__) in StatFS"
This reverts commit 4440ecf4a74b85341d5ecc1ecb1a9349b6fc5d3b. Turns out that it is reporting a block size of 0 and so all bogus.
Diffstat (limited to 'StatFS.hsc')
-rw-r--r--StatFS.hsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/StatFS.hsc b/StatFS.hsc
index 45fd7e4db..8b453dc19 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__) || 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"