diff --git a/Target.h b/Target.h index ee1e5f2d2..60dab8222 100644 --- a/Target.h +++ b/Target.h @@ -107,6 +107,7 @@ #include "scan_engine.h" #include +#include #ifndef INET6_ADDRSTRLEN #define INET6_ADDRSTRLEN 46 diff --git a/portlist.cc b/portlist.cc index 5f55d2ee2..2bd7edafe 100644 --- a/portlist.cc +++ b/portlist.cc @@ -413,6 +413,7 @@ void PortList::setRPCProbeResults(u16 portno, int proto, int rpcs, unsigned long } +#ifndef NOLUA void PortList::addScriptResult(u16 portno, int protocol, ScriptResult& sr) { Port *port; @@ -420,6 +421,7 @@ void PortList::addScriptResult(u16 portno, int protocol, ScriptResult& sr) { port->scriptResults.push_back(sr); } +#endif /*****************************************************************************/ /* Convert protocol name from in.h to enum portlist_proto. diff --git a/portlist.h b/portlist.h index 99a0b4f4a..1fe1b20df 100644 --- a/portlist.h +++ b/portlist.h @@ -278,7 +278,9 @@ class PortList { void setRPCProbeResults(u16 portno, int proto, int rpc_status, unsigned long rpc_program, unsigned int rpc_lowver, unsigned int rpc_highver); +#ifndef NOLUA void addScriptResult(u16 portno, int protocol, ScriptResult& sr); +#endif /* Cycles through the 0 or more "ignored" ports which should be consolidated for Nmap output. They are returned sorted by the