diff --git a/src/bin/elua/fork_win.c b/src/bin/elua/fork_win.c index 088e311911..cb79f19042 100644 --- a/src/bin/elua/fork_win.c +++ b/src/bin/elua/fork_win.c @@ -109,7 +109,7 @@ static int init_ntdll(void) { return !!ZwCreateProcess; } -int fork_win(void) { +static int fork_win(void) { if (setjmp(jenv)) return 0; if (!ZwCreateProcess && !init_ntdll()) return -1; diff --git a/src/bin/elua/main.c b/src/bin/elua/main.c index 07b94d6f87..ee06b87bb7 100644 --- a/src/bin/elua/main.c +++ b/src/bin/elua/main.c @@ -8,6 +8,7 @@ #define pipe(x, mode) pipe(x) #else #include +#include "fork_win.c" int fork_win(void); #define fork fork_win #define fdopen _fdopen