1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix build failures under --without-liblua

This commit is contained in:
dmiller
2015-10-26 16:16:02 +00:00
parent fc77dcc6a3
commit fcae4fa15d
5 changed files with 6 additions and 2 deletions

View File

@@ -131,6 +131,7 @@
#include <nsock.h> #include <nsock.h>
#include <string> #include <string>
#include <map> #include <map>
#include <vector>
struct FingerPrintDB; struct FingerPrintDB;
struct FingerMatch; struct FingerMatch;

View File

@@ -168,6 +168,7 @@
#endif #endif
#include <nsock.h> #include <nsock.h>
class PortList; class PortList;
class Target;
#include <stdarg.h> #include <stdarg.h>
#include <string> #include <string>

View File

@@ -132,6 +132,8 @@
#include "portreasons.h" #include "portreasons.h"
#include <vector>
/* port states */ /* port states */
#define PORT_UNKNOWN 0 #define PORT_UNKNOWN 0
#define PORT_CLOSED 1 #define PORT_CLOSED 1

View File

@@ -128,6 +128,7 @@
#define SERVICE_SCAN_H #define SERVICE_SCAN_H
#include "portlist.h" #include "portlist.h"
#include "nmap.h"
#include <vector> #include <vector>

View File

@@ -463,8 +463,6 @@ void HostGroupState::undefer() {
} }
const char *HostGroupState::next_expression() { const char *HostGroupState::next_expression() {
static char buf[1024];
if (o.max_ips_to_scan == 0 || o.numhosts_scanned + this->current_batch_sz < o.max_ips_to_scan) { if (o.max_ips_to_scan == 0 || o.numhosts_scanned + this->current_batch_sz < o.max_ips_to_scan) {
const char *expr; const char *expr;
expr = grab_next_host_spec(o.inputfd, o.generate_random_ips, this->argc, this->argv); expr = grab_next_host_spec(o.inputfd, o.generate_random_ips, this->argc, this->argv);
@@ -474,6 +472,7 @@ const char *HostGroupState::next_expression() {
#ifndef NOLUA #ifndef NOLUA
/* Add any new NSE discovered targets to the scan queue */ /* Add any new NSE discovered targets to the scan queue */
static char buf[1024];
NewTargets *new_targets = NewTargets::get(); NewTargets *new_targets = NewTargets::get();
if (o.script && new_targets != NULL) { if (o.script && new_targets != NULL) {