From 0ff217dc5362b31f15c9b615484350e23b517ae5 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 20 Apr 2017 17:24:33 +0000 Subject: [PATCH] Re-add some needed includes on Windows --- FPEngine.cc | 2 ++ nmap_dns.cc | 2 ++ nping/ProbeMode.cc | 5 +++++ nse_nsock.cc | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/FPEngine.cc b/FPEngine.cc index c6c87c845..6dde628c2 100644 --- a/FPEngine.cc +++ b/FPEngine.cc @@ -142,6 +142,8 @@ #include "tcpip.h" extern NmapOps o; #ifdef WIN32 +/* Need DnetName2PcapName */ +#include "libnetutil/netutil.h" /* from libdnet's intf-win32.c */ extern "C" int g_has_npcap_loopback; #endif diff --git a/nmap_dns.cc b/nmap_dns.cc index 8b85ab8ed..df4e517ab 100644 --- a/nmap_dns.cc +++ b/nmap_dns.cc @@ -183,6 +183,8 @@ #ifdef WIN32 #include "nmap_winconfig.h" +/* Need DnetName2PcapName */ +#include "libnetutil/netutil.h" #endif #include "nmap.h" diff --git a/nping/ProbeMode.cc b/nping/ProbeMode.cc index bd0913c37..dd08f4411 100644 --- a/nping/ProbeMode.cc +++ b/nping/ProbeMode.cc @@ -136,6 +136,11 @@ #include "output.h" #include "NpingOps.h" +#ifdef WIN32 +/* Need DnetName2PcapName */ +#include "libnetutil/netutil.h" +#endif + extern NpingOps o; diff --git a/nse_nsock.cc b/nse_nsock.cc index b69754873..7cbfcd24f 100644 --- a/nse_nsock.cc +++ b/nse_nsock.cc @@ -4,6 +4,11 @@ #include "tcpip.h" #include "protocols.h" +#ifdef WIN32 +/* Need DnetName2PcapName */ +#include "libnetutil/netutil.h" +#endif + #include "nse_nsock.h" #include "nse_main.h" #include "nse_utility.h"