jon Thu Aug 21 02:24:17 2003 EDT Modified files: /php-src configure.in /php-src/ext/standard filestat.c Log: Under FreeBSD, statfs(2) requires both <sys/mount.h> _and_ <sys/param.h>. The autoconf check for <sys/mount.h> was failing because <sys/param.h> wasn't being universally included. This gets disk_total_space() and disk_free_space() working again under FreeBSD. Index: php-src/configure.in diff -u php-src/configure.in:1.459 php-src/configure.in:1.460 --- php-src/configure.in:1.459 Thu Aug 7 08:04:27 2003 +++ php-src/configure.in Thu Aug 21 02:24:16 2003 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.459 2003/08/07 12:04:27 sniper Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.460 2003/08/21 06:24:16 jon Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -327,6 +327,7 @@ dnl QNX requires unix.h to allow functions in libunix to work properly AC_CHECK_HEADERS([ \ ApplicationServices/ApplicationServices.h \ +sys/param.h \ sys/types.h \ sys/time.h \ netinet/in.h \ @@ -372,6 +373,9 @@ sys/ipc.h \ dlfcn.h ],[],[],[ +#ifdef HAVE_SYS_PARAM_H +#include <sys/param.h> +#endif #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif Index: php-src/ext/standard/filestat.c diff -u php-src/ext/standard/filestat.c:1.124 php-src/ext/standard/filestat.c:1.125 --- php-src/ext/standard/filestat.c:1.124 Mon Aug 11 19:16:53 2003 +++ php-src/ext/standard/filestat.c Thu Aug 21 02:24:17 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: filestat.c,v 1.124 2003/08/11 23:16:53 iliaa Exp $ */ +/* $Id: filestat.c,v 1.125 2003/08/21 06:24:17 jon Exp $ */ #include "php.h" #include "safe_mode.h" @@ -32,6 +32,10 @@ #if HAVE_UNISTD_H # include <unistd.h> +#endif + +#if HAVE_SYS_PARAM_H +# include <sys/param.h> #endif #if HAVE_SYS_VFS_H
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php