Date: 05/14/01
- Next message: Brian Moon: "[PHP-DEV] Re: [PEAR-DEV] Comparison style"
- Previous message: Sterling Hughes: "Re: [PHP-DEV] Comparison style"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I was just working with ext/standard/filestat.c under FreeBSD.
FreeBSD defines statfs(2) in <sys/mount.h> (not <sys/statfs.h>),
so while autoconf determines that statfs(2) is available, it
fails to locate <sys/statfs.h>, and the following dependencies
fail:
#if defined(HAVE_SYS_STATVFS_H) && defined(HAVE_STATVFS)
struct statvfs buf;
#elif defined(HAVE_SYS_STATFS_H) && defined(HAVE_STATFS)
struct statfs buf;
#endif
In the FreeBSD case, statfs is available but not used.
I fixed this problem locally by removing some of the tests for
'defined(HAVE_SYS_STATFS_H)' and including <sys/mount.h>.
I would like to commit this fix so that functions like
diskfreespace() and my proposed disktotalspace() return correct
results.
Would the best way of fixing this problem be to do the above and
include <sys/mount.h> conditionally under FreeBSD?
Also note that this problem is also addressed in the user note on
the diskfreespace() manual page:
http://www.php.net/manual/en/function.diskfreespace.php
-- Jon Parise (jon <email protected>) . Rochester Inst. of Technology http://www.csh.rit.edu/~jon/ : Computer Science House Member-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Brian Moon: "[PHP-DEV] Re: [PEAR-DEV] Comparison style"
- Previous message: Sterling Hughes: "Re: [PHP-DEV] Comparison style"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

