1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-17 21:19:01 +00:00

Fixing compilation when --without-liblua is used.

This commit is contained in:
bmenrigh
2010-01-24 08:57:38 +00:00
parent 92564b9b00
commit 9ad0a206db
3 changed files with 5 additions and 0 deletions

View File

@@ -107,6 +107,7 @@
#include "scan_engine.h" #include "scan_engine.h"
#include <list> #include <list>
#include <string>
#ifndef INET6_ADDRSTRLEN #ifndef INET6_ADDRSTRLEN
#define INET6_ADDRSTRLEN 46 #define INET6_ADDRSTRLEN 46

View File

@@ -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) { void PortList::addScriptResult(u16 portno, int protocol, ScriptResult& sr) {
Port *port; Port *port;
@@ -420,6 +421,7 @@ void PortList::addScriptResult(u16 portno, int protocol, ScriptResult& sr) {
port->scriptResults.push_back(sr); port->scriptResults.push_back(sr);
} }
#endif
/*****************************************************************************/ /*****************************************************************************/
/* Convert protocol name from in.h to enum portlist_proto. /* Convert protocol name from in.h to enum portlist_proto.

View File

@@ -278,7 +278,9 @@ class PortList {
void setRPCProbeResults(u16 portno, int proto, int rpc_status, unsigned long rpc_program, void setRPCProbeResults(u16 portno, int proto, int rpc_status, unsigned long rpc_program,
unsigned int rpc_lowver, unsigned int rpc_highver); unsigned int rpc_lowver, unsigned int rpc_highver);
#ifndef NOLUA
void addScriptResult(u16 portno, int protocol, ScriptResult& sr); void addScriptResult(u16 portno, int protocol, ScriptResult& sr);
#endif
/* Cycles through the 0 or more "ignored" ports which should be /* Cycles through the 0 or more "ignored" ports which should be
consolidated for Nmap output. They are returned sorted by the consolidated for Nmap output. They are returned sorted by the