sigemptyset() used without including <signal.h>
| Bug #37313 | sigemptyset() used without including <signal.h> | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-05-04 18:28 UTC | Modified: | 2006-05-05 07:08 UTC | ||
| From: | jdolecek at NetBSD dot org | Assigned: | dmitry (profile) | ||
| Status: | Closed | Package: | Compile Warning | ||
| PHP Version: | 5.1.3 | OS: | NetBSD | ||
| Private report: | No | CVE-ID: | None | ||
[2006-05-04 18:28 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-05-05 07:08 UTC] dmitry@php.net