derick Thu Jun 30 06:03:38 2005 EDT
Modified files:
/php-src/ext/posix config.m4 posix.c
Log:
- Added check for makedev systemcall, which Netware doesn't support.
http://cvs.php.net/diff.php/php-src/ext/posix/config.m4?r1=1.10&r2=1.11&ty=u
Index: php-src/ext/posix/config.m4
diff -u php-src/ext/posix/config.m4:1.10 php-src/ext/posix/config.m4:1.11
--- php-src/ext/posix/config.m4:1.10 Mon Jun 6 18:04:14 2005
+++ php-src/ext/posix/config.m4 Thu Jun 30 06:03:36 2005
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.10 2005/06/06 22:04:14 wez Exp $
+dnl $Id: config.m4,v 1.11 2005/06/30 10:03:36 derick Exp $
dnl
PHP_ARG_ENABLE(posix,whether to enable POSIX-like functions,
@@ -11,5 +11,5 @@
AC_CHECK_HEADERS(sys/mkdev.h)
- AC_CHECK_FUNCS(seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo
mknod getrlimit getlogin getgroups)
+ AC_CHECK_FUNCS(seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo
mknod getrlimit getlogin getgroups makdev)
fi
http://cvs.php.net/diff.php/php-src/ext/posix/posix.c?r1=1.67&r2=1.68&ty=u
Index: php-src/ext/posix/posix.c
diff -u php-src/ext/posix/posix.c:1.67 php-src/ext/posix/posix.c:1.68
--- php-src/ext/posix/posix.c:1.67 Mon Jun 6 18:04:14 2005
+++ php-src/ext/posix/posix.c Thu Jun 30 06:03:36 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: posix.c,v 1.67 2005/06/06 22:04:14 wez Exp $ */
+/* $Id: posix.c,v 1.68 2005/06/30 10:03:36 derick Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -143,7 +143,7 @@
static PHP_MINFO_FUNCTION(posix)
{
php_info_print_table_start();
- php_info_print_table_row(2, "Revision", "$Revision: 1.67 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.68 $");
php_info_print_table_end();
}
/* }}} */
@@ -698,7 +698,11 @@
"expects argument 4 to be non-zero for
POSIX_S_IFCHR and POSIX_S_IFBLK");
RETURN_FALSE;
} else {
+#ifdef HAVE_MAKEDEV
php_dev = makedev(major, minor);
+#else
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can not
create a block or character device, creating a normal file instead");
+#endif
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php