mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
Applied a patch provided by jah that solves a problem with includes on windows.
This commit is contained in:
40
nse_fs.cc
40
nse_fs.cc
@@ -36,32 +36,6 @@
|
|||||||
|
|
||||||
#define _LARGEFILE64_SOURCE
|
#define _LARGEFILE64_SOURCE
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#include <direct.h>
|
|
||||||
#include <windows.h>
|
|
||||||
#include <io.h>
|
|
||||||
#include <sys/locking.h>
|
|
||||||
#ifdef __BORLANDC__
|
|
||||||
#include <utime.h>
|
|
||||||
#else
|
|
||||||
#include <sys/utime.h>
|
|
||||||
#endif
|
|
||||||
#include <fcntl.h>
|
|
||||||
#else
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <dirent.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <utime.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "lauxlib.h"
|
#include "lauxlib.h"
|
||||||
#include "lua.h"
|
#include "lua.h"
|
||||||
@@ -73,8 +47,21 @@ extern "C" {
|
|||||||
#include "nmap_error.h"
|
#include "nmap_error.h"
|
||||||
#include "NmapOps.h"
|
#include "NmapOps.h"
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <direct.h>
|
||||||
|
#include <sys/utime.h>
|
||||||
|
#else
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <utime.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#define DIR_METATABLE "directory metatable"
|
||||||
|
|
||||||
#ifndef MAX_PATH
|
#ifndef MAX_PATH
|
||||||
#define MAX_PATH 2048
|
#define MAX_PATH 2048
|
||||||
#endif
|
#endif
|
||||||
@@ -93,7 +80,6 @@ extern "C" {
|
|||||||
#define strerror(_) "System unable to describe the error"
|
#define strerror(_) "System unable to describe the error"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DIR_METATABLE "directory metatable"
|
|
||||||
typedef struct dir_data {
|
typedef struct dir_data {
|
||||||
int closed;
|
int closed;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|||||||
Reference in New Issue
Block a user