mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Rearrange some headers to make sure that out nbase errno defines are seen early,
avoiding warning about symbol redefinitions. This is mostly moving "nmap.h" to the top of the list.
This commit is contained in:
@@ -91,12 +91,13 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
#include "nmap.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
/* Character pool memory allocation */
|
/* Character pool memory allocation */
|
||||||
#include "MACLookup.h"
|
#include "MACLookup.h"
|
||||||
#include "NmapOps.h"
|
#include "NmapOps.h"
|
||||||
#include "nmap.h"
|
|
||||||
#include "nmap_error.h"
|
#include "nmap_error.h"
|
||||||
#include "charpool.h"
|
#include "charpool.h"
|
||||||
|
|
||||||
|
|||||||
12
nmap_dns.cc
12
nmap_dns.cc
@@ -148,12 +148,6 @@
|
|||||||
#include "nmap_winconfig.h"
|
#include "nmap_winconfig.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <limits.h>
|
|
||||||
#include <list>
|
|
||||||
#include <vector>
|
|
||||||
#include <algorithm>
|
|
||||||
|
|
||||||
#include "nmap.h"
|
#include "nmap.h"
|
||||||
#include "NmapOps.h"
|
#include "NmapOps.h"
|
||||||
#include "nmap_dns.h"
|
#include "nmap_dns.h"
|
||||||
@@ -163,6 +157,12 @@
|
|||||||
#include "timing.h"
|
#include "timing.h"
|
||||||
#include "Target.h"
|
#include "Target.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <limits.h>
|
||||||
|
#include <list>
|
||||||
|
#include <vector>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
extern NmapOps o;
|
extern NmapOps o;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -91,6 +91,8 @@
|
|||||||
#include "nmap_config.h"
|
#include "nmap_config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "nmap.h"
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#if HAVE_SYS_STAT_H
|
#if HAVE_SYS_STAT_H
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ extern "C" {
|
|||||||
#include "lauxlib.h"
|
#include "lauxlib.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "nmap.h"
|
||||||
#include "nse_debug.h"
|
#include "nse_debug.h"
|
||||||
#include "output.h"
|
#include "output.h"
|
||||||
|
|
||||||
|
|||||||
15
nse_fs.cc
15
nse_fs.cc
@@ -4,19 +4,20 @@ extern "C" {
|
|||||||
#include "lauxlib.h"
|
#include "lauxlib.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <string>
|
#include "nmap.h"
|
||||||
|
#include "nse_fs.h"
|
||||||
|
#include "nmap_error.h"
|
||||||
|
#include "NmapOps.h"
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include "dirent.h"
|
#include "dirent.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "errno.h"
|
|
||||||
#include "nse_fs.h"
|
|
||||||
#include "nmap.h"
|
|
||||||
#include "nmap_error.h"
|
|
||||||
#include "NmapOps.h"
|
|
||||||
|
|
||||||
#define DIR_METATABLE "dir"
|
#define DIR_METATABLE "dir"
|
||||||
|
|
||||||
#ifndef MAXPATHLEN
|
#ifndef MAXPATHLEN
|
||||||
|
|||||||
@@ -94,6 +94,7 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
#include "nmap.h"
|
||||||
#include "output.h"
|
#include "output.h"
|
||||||
#include "osscan.h"
|
#include "osscan.h"
|
||||||
#include "NmapOps.h"
|
#include "NmapOps.h"
|
||||||
|
|||||||
@@ -89,6 +89,8 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
#include "nmap.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -90,9 +90,9 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
|
||||||
|
#include "nmap.h"
|
||||||
#include "portlist.h"
|
#include "portlist.h"
|
||||||
#include "nmap_error.h"
|
#include "nmap_error.h"
|
||||||
#include "nmap.h"
|
|
||||||
#include "NmapOps.h"
|
#include "NmapOps.h"
|
||||||
#include "services.h"
|
#include "services.h"
|
||||||
#include "protocols.h"
|
#include "protocols.h"
|
||||||
|
|||||||
@@ -90,7 +90,6 @@
|
|||||||
* Written by Eddie Bell <ejlbell@gmail.com> 2007
|
* Written by Eddie Bell <ejlbell@gmail.com> 2007
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include "nmap.h"
|
#include "nmap.h"
|
||||||
#include "portlist.h"
|
#include "portlist.h"
|
||||||
#include "NmapOps.h"
|
#include "NmapOps.h"
|
||||||
@@ -101,6 +100,8 @@
|
|||||||
#include "winfix.h"
|
#include "winfix.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
extern NmapOps o;
|
extern NmapOps o;
|
||||||
class PortList;
|
class PortList;
|
||||||
|
|
||||||
|
|||||||
@@ -90,15 +90,16 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
#include <list>
|
#include "nmap.h"
|
||||||
#include <map>
|
|
||||||
|
|
||||||
#include "services.h"
|
#include "services.h"
|
||||||
#include "NmapOps.h"
|
#include "NmapOps.h"
|
||||||
#include "charpool.h"
|
#include "charpool.h"
|
||||||
#include "nmap_error.h"
|
#include "nmap_error.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
|
#include <list>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
/* This structure is the key for looking up services in the
|
/* This structure is the key for looking up services in the
|
||||||
port/proto -> service map. */
|
port/proto -> service map. */
|
||||||
struct port_spec {
|
struct port_spec {
|
||||||
|
|||||||
7
xml.cc
7
xml.cc
@@ -145,14 +145,15 @@ All writing is done with log_write(LOG_XML), so if LOG_XML hasn't been
|
|||||||
opened, calling these functions has no effect.
|
opened, calling these functions has no effect.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "nmap.h"
|
||||||
|
#include "output.h"
|
||||||
|
#include "xml.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
#include "output.h"
|
|
||||||
#include "xml.h"
|
|
||||||
|
|
||||||
struct xml_writer {
|
struct xml_writer {
|
||||||
/* Sanity checking: Don't open a new tag while still defining
|
/* Sanity checking: Don't open a new tag while still defining
|
||||||
attributes for another, like "<elem1<elem2". */
|
attributes for another, like "<elem1<elem2". */
|
||||||
|
|||||||
Reference in New Issue
Block a user