diff --git a/runScript.c b/runScript.c index 9fc58d3..ff6543f 100644 --- a/runScript.c +++ b/runScript.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include @@ -23,6 +24,11 @@ #include #endif +#if defined (_WIN32) +#include "asprintf.h" + +#endif + #define IS_ABS_PATH(filename) (filename[0] == '/') /* may be different for other OS */ #ifdef BASE_VERSION @@ -30,6 +36,8 @@ extern char** ppGlobalEnviron; #define OSI_PATH_SEPARATOR "/" #define OSI_PATH_LIST_SEPARATOR ":" +extern volatile int interruptAccept; + #else #include #include @@ -435,7 +443,6 @@ void afterInitHook(initHookState state) } } -extern volatile int interruptAccept; static int first_time = 1;