diff --git a/nmap_config.h.in b/nmap_config.h.in index 8a77a6935..38617f27b 100644 --- a/nmap_config.h.in +++ b/nmap_config.h.in @@ -215,9 +215,6 @@ extern "C" int gethostname (char *, unsigned int); /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS -/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ -#undef _LARGEFILE_SOURCE - /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES diff --git a/nse_fs.cc b/nse_fs.cc index 8af24a6ae..a83c9bfb2 100644 --- a/nse_fs.cc +++ b/nse_fs.cc @@ -26,13 +26,7 @@ * **/ -#ifndef _WIN32 -#ifndef _AIX -#define _FILE_OFFSET_BITS 64 /* Linux, Solaris and HP-UX */ -#else -#define _LARGE_FILES 1 /* AIX */ -#endif -#endif +#include "nmap_config.h" #define _LARGEFILE64_SOURCE