From 5c83c3d2a5b7843b861fb0dc5f6a44164927d6f0 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 8 Nov 2018 04:55:29 +0000 Subject: [PATCH] Fixes for Windows build from Lua header rearrangements --- ncat/config_win.h | 1 + ncat/ncat_lua.h | 2 ++ nse_lua.h | 6 ++++++ 3 files changed, 9 insertions(+) diff --git a/ncat/config_win.h b/ncat/config_win.h index 9f6791280..2c86407ff 100644 --- a/ncat/config_win.h +++ b/ncat/config_win.h @@ -132,4 +132,5 @@ #define HAVE_OPENSSL 1 #define HAVE_SSL_SET_TLSEXT_HOST_NAME 1 #define HAVE_HTTP_DIGEST 1 +#define LUA_INCLUDED 1 #define HAVE_LUA 1 diff --git a/ncat/ncat_lua.h b/ncat/ncat_lua.h index 8a9e5d07c..5f2525ffa 100644 --- a/ncat/ncat_lua.h +++ b/ncat/ncat_lua.h @@ -130,6 +130,8 @@ #ifndef _NCAT_LUA_H #define _NCAT_LUA_H +#include "ncat_config.h" + #ifdef __cplusplus extern "C" { #endif diff --git a/nse_lua.h b/nse_lua.h index aa5d4bb29..ae486d238 100644 --- a/nse_lua.h +++ b/nse_lua.h @@ -1,7 +1,13 @@ #ifndef NSE_LUA_H #define NSE_LUA_H +#ifdef HAVE_CONFIG_H #include "nmap_config.h" +#else +#ifdef WIN32 +#include "nmap_winconfig.h" +#endif /* WIN32 */ +#endif /* HAVE_CONFIG_H */ #ifdef __cplusplus extern "C" {