mirror of
https://github.com/nmap/nmap.git
synced 2026-07-11 18:55:08 +00:00
Fixing compilation when --without-liblua is used.
This commit is contained in:
parent
92564b9b00
commit
9ad0a206db
3 changed files with 5 additions and 0 deletions
1
Target.h
1
Target.h
|
|
@ -107,6 +107,7 @@
|
|||
#include "scan_engine.h"
|
||||
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
#ifndef INET6_ADDRSTRLEN
|
||||
#define INET6_ADDRSTRLEN 46
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue