rasmus Mon May 5 21:28:47 2008 UTC
Modified files:
/php-src/ext/posix posix.c
Log:
No domainname element in utsname on OSX
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/posix.c?r1=1.99&r2=1.100&diff_format=u
Index: php-src/ext/posix/posix.c
diff -u php-src/ext/posix/posix.c:1.99 php-src/ext/posix/posix.c:1.100
--- php-src/ext/posix/posix.c:1.99 Sun May 4 09:33:56 2008
+++ php-src/ext/posix/posix.c Mon May 5 21:28:47 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: posix.c,v 1.99 2008/05/04 09:33:56 tony2001 Exp $ */
+/* $Id: posix.c,v 1.100 2008/05/05 21:28:47 rasmus Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -147,7 +147,7 @@
static PHP_MINFO_FUNCTION(posix)
{
php_info_print_table_start();
- php_info_print_table_row(2, "Revision", "$Revision: 1.99 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.100 $");
php_info_print_table_end();
}
/* }}} */
@@ -468,7 +468,7 @@
add_assoc_string(return_value, "release", u.release, 1);
add_assoc_string(return_value, "version", u.version, 1);
add_assoc_string(return_value, "machine", u.machine, 1);
-#ifdef _GNU_SOURCE
+#if defined(_GNU_SOURCE) && !defined(DARWIN)
add_assoc_string(return_value, "domainname", u.domainname, 1);
#endif
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php