ID:               37313
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jdolecek at NetBSD dot org
-Status:           Assigned
+Status:           Closed
 Bug Type:         Compile Warning
 Operating System: NetBSD
 PHP Version:      5.1.3
 Assigned To:      dmitry
 New Comment:

Thnank you for catching this bug.
Your patch is committed into CVS HEAD and PHP_5_1.


Previous Comments:
------------------------------------------------------------------------

[2006-05-04 18:28:20] jdolecek at NetBSD dot org

Description:
------------
Compiling FastCGI PHP emits a warning about sigemptyset() used without
correct header #include in sapi/cgi/fastcgi.c.

Patch:
--- sapi/cgi/fastcgi.c.orig
+++ sapi/cgi/fastcgi.c
@@ -69,7 +69,7 @@
 # include <netinet/in.h>
 # include <arpa/inet.h>
 # include <netdb.h>
-# include <sys/signal.h>
+# include <signal.h>
 
 #ifndef INADDR_NONE
 #define INADDR_NONE ((unsigned long) -1)


Reproduce code:
---------------
./configure --enable-fastcgi, make and wait

Expected result:
----------------
No warning

Actual result:
--------------
sapi/cgi/fastcgi.o(.text+0x9c): In function `fcgi_init':
: warning: warning: reference to compatibility sigemptyset(); include
<signal.h> for correct reference



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37313&edit=1

Reply via email to