cvs: php-src(PHP_5_3) /ext/posix posix.c
| From: | Felipe Pena | Date: | Sun, 22 Jun 2008 21:45:42 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/posix posix.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-50571@lists.php.net to get a copy of this message | ||
felipe Sun Jun 22 21:45:42 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/posix posix.c
Log:
- Fix build where __USE_GNU is used instead of _GNU_SOURCE to define utsname.domainname
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/posix.c?r1=1.70.2.3.2.16.2.6&r2=1.70.2.3.2.16.2.7&diff_format=u
Index: php-src/ext/posix/posix.c
diff -u php-src/ext/posix/posix.c:1.70.2.3.2.16.2.6 php-src/ext/posix/posix.c:1.70.2.3.2.16.2.7
--- php-src/ext/posix/posix.c:1.70.2.3.2.16.2.6 Mon May 5 21:26:46 2008
+++ php-src/ext/posix/posix.c Sun Jun 22 21:45:42 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: posix.c,v 1.70.2.3.2.16.2.6 2008/05/05 21:26:46 rasmus Exp $ */
+/* $Id: posix.c,v 1.70.2.3.2.16.2.7 2008/06/22 21:45:42 felipe 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.16.2.6 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.70.2.3.2.16.2.7 $");
php_info_print_table_end();
}
/* }}} */