tony2001 Sun Jan 4 15:08:34 2009 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/posix posix.c
Log:
MFH: Fix build where __USE_GNU is used instead of _GNU_SOURCE to define
utsname.domainname
(c) felipe, Sun Jun 22 21:45:42 2008 UTC
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/posix.c?r1=1.70.2.3.2.21&r2=1.70.2.3.2.22&diff_format=u
Index: php-src/ext/posix/posix.c
diff -u php-src/ext/posix/posix.c:1.70.2.3.2.21
php-src/ext/posix/posix.c:1.70.2.3.2.22
--- php-src/ext/posix/posix.c:1.70.2.3.2.21 Wed Dec 31 11:17:42 2008
+++ php-src/ext/posix/posix.c Sun Jan 4 15:08:34 2009
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: posix.c,v 1.70.2.3.2.21 2008/12/31 11:17:42 sebastian Exp $ */
+/* $Id: posix.c,v 1.70.2.3.2.22 2009/01/04 15:08:34 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -36,6 +36,11 @@
#endif
#include <sys/resource.h>
+
+#if defined(_GNU_SOURCE) && !defined(__USE_GNU)
+# define __USE_GNU
+#endif
+
#include <sys/utsname.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -147,7 +152,7 @@
static PHP_MINFO_FUNCTION(posix)
{
php_info_print_table_start();
- php_info_print_table_row(2, "Revision", "$Revision: 1.70.2.3.2.21 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.70.2.3.2.22 $");
php_info_print_table_end();
}
/* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php