Module: wine Branch: master Commit: 3e4a9cb4d4cb0431546a3af94c9a4091e95a7a04 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3e4a9cb4d4cb0431546a3af94c...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Sep 6 12:11:46 2011 +0200
kernel32: Include system headers before Windows headers.
---
dlls/kernel32/process.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c index b0eba7c..3c6ae63 100644 --- a/dlls/kernel32/process.c +++ b/dlls/kernel32/process.c @@ -41,6 +41,13 @@ # include <sys/prctl.h> #endif #include <sys/types.h> +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif +#ifdef __APPLE__ +#include <CoreFoundation/CoreFoundation.h> +#include <pthread.h> +#endif
#include "ntstatus.h" #define WIN32_NO_STATUS @@ -57,9 +64,6 @@ WINE_DECLARE_DEBUG_CHANNEL(file); WINE_DECLARE_DEBUG_CHANNEL(relay);
#ifdef __APPLE__ -#include <CoreFoundation/CoreFoundation.h> -#include <pthread.h> -#include <unistd.h> extern char **__wine_get_main_environment(void); #else extern char **__wine_main_environ;