#32045 [Opn->WFx]: Warnings when compiling posix.c

From: Date: Sun, 06 Mar 2005 16:24:52 +0000
Subject: #32045 [Opn->WFx]: Warnings when compiling posix.c
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74927@lists.php.net to get a copy of this message
ID: 32045 Updated by: sniper@php.net Reported By: mcihar at suse dot cz -Status: Open +Status: Wont fix Bug Type: Compile Warning Operating System: Linux PHP Version: 5.0.3 New Comment: Not only does that fix not work, but it might cause more problems than it tries to fix -> wont fix. (that warning is harmless) Previous Comments: ------------------------------------------------------------------------ [2005-02-21 14:35:41] mcihar at suse dot cz Description: ------------ php-5.0.3/ext/posix/posix.c: In function `zif_posix_getpgid': php-5.0.3/ext/posix/posix.c:374: warning: implicit declaration of function `getpgid' php-5.0.3/ext/posix/posix.c: In function `zif_posix_getsid': php-5.0.3/ext/posix/posix.c:384: warning: implicit declaration of function `getsid' fix is simple, see man page for getpgid for detailed description: --- ext/posix/posix.c.orig 2004-04-18 23:49:10.000000000 +0200 +++ ext/posix/posix.c 2005-02-21 13:01:50.452549636 +0100 @@ -23,6 +23,8 @@ #endif #include "php.h" +/* Needed to get getpgid and getsid */ +#define _XOPEN_SOURCE 500 #include <unistd.h> #include "ext/standard/info.h" #include "ext/standard/php_string.h" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32045&edit=1

« previous php.bugs (#74927) next »