The source project of this merge request has been removed.
Fix building on FreeBSD
After the getfsstat() addition I thought what was there was good enough to expose getfsstat() with the dance with _ISOC99_SOURCE and _POSIX_C_SOURCE, but it turns out it was not. So the current codebase with this has been build tested on OpenBSD, NetBSD and FreeBSD.