ID:               32045
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to