1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix compilation on Mac OS X (and probably other *BSD)

http://seclists.org/nmap-dev/2014/q2/404

Introduced in r32873, which failed to include signal.h for sigaction and
friends. Doesn't break Linux because sys/wait.h is included. POSIX
(http://pubs.opengroup.org/onlinepubs/007904975/basedefs/sys/wait.h.html)
says "Inclusion of the <sys/wait.h> header *may* also make visible all
symbols from <signal.h> and <sys/resource.h>." (emphasis mine.)
This commit is contained in:
dmiller
2014-06-05 02:35:06 +00:00
parent 381bf2fd23
commit 51279d6b01

View File

@@ -163,7 +163,8 @@ static void tty_flush(void)
FlushConsoleInputBuffer(stdinput);
}
#else
#else //!win32
#include <signal.h>
#if !defined(O_NONBLOCK) && defined(O_NDELAY)
#define O_NONBLOCK O_NDELAY
#endif