From 51279d6b01638f4a1cf524e85d19f0795f848a49 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 5 Jun 2014 02:35:06 +0000 Subject: [PATCH] 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 header *may* also make visible all symbols from and ." (emphasis mine.) --- nmap_tty.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nmap_tty.cc b/nmap_tty.cc index d3e94e4d8..463b3645f 100644 --- a/nmap_tty.cc +++ b/nmap_tty.cc @@ -163,7 +163,8 @@ static void tty_flush(void) FlushConsoleInputBuffer(stdinput); } -#else +#else //!win32 +#include #if !defined(O_NONBLOCK) && defined(O_NDELAY) #define O_NONBLOCK O_NDELAY #endif