mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Fix build failures under --without-liblua
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
1
output.h
1
output.h
@@ -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>
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user