diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-01-06 04:08:25 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-01-06 04:08:25 +0100 |
commit | ae8a67090f60cc9aeb623bcc79e0df1af0d7f8eb (patch) | |
tree | 2746ab25d0f1dbf9cb25782648497fc51a55960f /src | |
parent | a3872b05d344c70bf2d7d7064fde507b31643821 (diff) | |
download | xmobar-ae8a67090f60cc9aeb623bcc79e0df1af0d7f8eb.tar.gz xmobar-ae8a67090f60cc9aeb623bcc79e0df1af0d7f8eb.tar.bz2 |
Fix for compilation on OS X (issue 28)
Diffstat (limited to 'src')
-rw-r--r-- | src/StatFS.hsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StatFS.hsc b/src/StatFS.hsc index 6bb8ec4..391da68 100644 --- a/src/StatFS.hsc +++ b/src/StatFS.hsc @@ -23,7 +23,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 @@ -47,7 +47,7 @@ data FileSystemStats = FileSystemStats { data CStatfs -#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" |