#37313 [Opn->Asn]: sigemptyset() used without including <signal.h>
ID: 37313
Updated by: tony2001@php.net
Reported By: jdolecek at NetBSD dot org
-Status: Open
+Status: Assigned
Bug Type: Compile Warning
Operating System: NetBSD
PHP Version: 5.1.3
-Assigned To:
+Assigned To: dmitry
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
Thread (3 messages)