elua: include fork_win.c in compilation

This commit is contained in:
Daniel Kolesa 2014-05-16 16:44:37 +01:00 committed by Daniel Kolesa
parent 88ca0dbf3f
commit 420f7a869a
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -8,6 +8,7 @@
#define pipe(x, mode) pipe(x)
#else
#include <io.h>
#include "fork_win.c"
int fork_win(void);
#define fork fork_win
#define fdopen _fdopen