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" {