cvs: php-src /ext/posix posix.c
| From: | Felipe Pena | Date: | Mon, 23 Jun 2008 01:16:49 +0000 |
| Subject: | cvs: php-src /ext/posix posix.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-50579@lists.php.net to get a copy of this message | ||
felipe Mon Jun 23 01:16:49 2008 UTC
Modified files:
/php-src/ext/posix posix.c
Log:
- MFB: 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.100&r2=1.101&diff_format=u
Index: php-src/ext/posix/posix.c
diff -u php-src/ext/posix/posix.c:1.100 php-src/ext/posix/posix.c:1.101
--- php-src/ext/posix/posix.c:1.100 Mon May 5 21:28:47 2008
+++ php-src/ext/posix/posix.c Mon Jun 23 01:16:49 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: posix.c,v 1.100 2008/05/05 21:28:47 rasmus Exp $ */
+/* $Id: posix.c,v 1.101 2008/06/23 01:16:49 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.100 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.101 $");
php_info_print_table_end();
}
/* }}} */