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:
@@ -131,6 +131,7 @@
|
||||
#include <nsock.h>
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
struct FingerPrintDB;
|
||||
struct FingerMatch;
|
||||
|
||||
1
output.h
1
output.h
@@ -168,6 +168,7 @@
|
||||
#endif
|
||||
#include <nsock.h>
|
||||
class PortList;
|
||||
class Target;
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <string>
|
||||
|
||||
@@ -132,6 +132,8 @@
|
||||
|
||||
#include "portreasons.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
/* port states */
|
||||
#define PORT_UNKNOWN 0
|
||||
#define PORT_CLOSED 1
|
||||
|
||||
@@ -128,6 +128,7 @@
|
||||
#define SERVICE_SCAN_H
|
||||
|
||||
#include "portlist.h"
|
||||
#include "nmap.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -463,8 +463,6 @@ void HostGroupState::undefer() {
|
||||
}
|
||||
|
||||
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) {
|
||||
const char *expr;
|
||||
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
|
||||
/* Add any new NSE discovered targets to the scan queue */
|
||||
static char buf[1024];
|
||||
|
||||
NewTargets *new_targets = NewTargets::get();
|
||||
if (o.script && new_targets != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user