summaryrefslogtreecommitdiff
path: root/StatFS.hsc
Commit message (Collapse)AuthorAge
* kFreeBSD supportGravatar Joey Hess2011-03-23
| | | | | | 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.
* use statfs64 on apple, while retaining statfs on freebsdGravatar Joey Hess2011-03-23
| | | | | | 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.
* Revert "Define (__APPLE__) in StatFS"Gravatar Joey Hess2011-03-23
| | | | | | This reverts commit 4440ecf4a74b85341d5ecc1ecb1a9349b6fc5d3b. Turns out that it is reporting a block size of 0 and so all bogus.
* Define (__APPLE__) in StatFSGravatar Jimmy Tang2011-03-23
| | | | | | 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.
* be a no-op on non-linux, non-freebsd systemsGravatar Joey Hess2011-03-22
| | | | | | | | 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.
* add StatFS.hsc, copied from xmobarGravatar Joey Hess2011-03-22