From: pk910 Date: Sun, 11 Dec 2011 06:26:18 +0000 (+0100) Subject: fixed WIN32 compatibility X-Git-Tag: v5.3~147 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=b5fafdc62441f47ab1dfe47205a52c33d0ec8c9a fixed WIN32 compatibility --- diff --git a/src/main.c b/src/main.c index 189cfd3..e81d810 100644 --- a/src/main.c +++ b/src/main.c @@ -153,7 +153,11 @@ main: memcpy(restart_argv, argv, argc * sizeof(char *)); restart_argv[argc] = NULL; + #ifdef WIN32 + execv(argv[0], (const char * const*)restart_argv); + #else execv(argv[0], restart_argv); + #endif } goto main; } diff --git a/src/main.h b/src/main.h index 5198615..3ffae35 100644 --- a/src/main.h +++ b/src/main.h @@ -32,6 +32,7 @@ #ifdef WIN32 #include #include +#include #else #include #include