[PHP-DEV] FreeBSD and statfs(2)

2001-05-19 Thread Jon Parise
FreeBSD defines statfs(2) in sys/mount.h, not in sys/statsfs.h as PHP expects. The following patch corrects the use of statfs(2) under FreeBSD, allowing disk_free_space() and disk_total_space() to report meaningful values. Any objections (or suggestions) to this patch? In theory, it would be ni

[PHP-DEV] FreeBSD and statfs

2001-05-14 Thread Jon Parise
I was just working with ext/standard/filestat.c under FreeBSD. FreeBSD defines statfs(2) in (not ), so while autoconf determines that statfs(2) is available, it fails to locate , and the following dependencies fail: #if defined(HAVE_SYS_STATVFS_H) && defined(HAVE_STATVFS) struct statvfs