diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c index c69de5ea23a..ca9462a697d 100644 --- a/dlls/ntdll/process.c +++ b/dlls/ntdll/process.c @@ -21,11 +21,16 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "config.h" + #include #include #include #include #include +#ifdef HAVE_UNISTD_H +# include +#endif #include "ntstatus.h" #define WIN32_NO_STATUS @@ -60,7 +65,7 @@ NTSTATUS WINAPI NtTerminateProcess( HANDLE handle, LONG exit_code ) self = !ret && reply->self; } SERVER_END_REQ; - if (self && handle) exit( exit_code ); + if (self && handle) _exit( exit_code ); return ret; }