Commit graph

6 commits

Author SHA1 Message Date
Joey Hess
0cd70cb5c0 kFreeBSD support
Tested on Debian kfreebsd-amd64. The BSD #includes worked. Both statfs64
and statfs worked. Using statfs to keep the same as general freebsd, and
because I didn't try it on 32 bit.
2011-03-23 13:10:20 -04:00
Joey Hess
b9c4c006bd use statfs64 on apple, while retaining statfs on freebsd
http://git-annex.branchable.com/bugs/Makefile_is_missing_dependancies/#comment-3196b43b7d745ab206435d0a69686815
indicates statfs64 works on apple. Probably on freebsd too, but I
have not tested it and so will stick with the old code there.
2011-03-23 12:53:57 -04:00
Joey Hess
0dac2b4f6c Revert "Define (__APPLE__) in StatFS"
This reverts commit 4440ecf4a7.

Turns out that it is reporting a block size of 0 and so all bogus.
2011-03-23 12:23:13 -04:00
Jimmy Tang
4440ecf4a7 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.
2011-03-23 11:11:55 -04:00
Joey Hess
aa1bc31e0a be a no-op on non-linux, non-freebsd systems
Todo later: use POSIX statvfs

Note: Re OSX, see http://code.google.com/p/xmobar/issues/detail?id=28
Apparently xmobar's code will work on OSX, probably __FreeBSD__ is defined
there.
2011-03-22 16:01:43 -04:00
Joey Hess
8ede2e255f add StatFS.hsc, copied from xmobar 2011-03-22 15:53:07 -04:00