From 06f6637363295b6ac9ddd1718358968d09db88d2 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 19 Oct 2021 18:58:36 +0200 Subject: [PATCH] libwine: Avoid including wine/port.h. Signed-off-by: Alexandre Julliard --- libs/wine/config.c | 7 +++---- libs/wine/debug.c | 7 +++---- libs/wine/ldt.c | 3 ++- libs/wine/loader.c | 6 ++---- libs/wine/mmap.c | 5 +---- libs/wine/port.c | 1 - 6 files changed, 11 insertions(+), 18 deletions(-) diff --git a/libs/wine/config.c b/libs/wine/config.c index b8f1bd5f86d..cb42421c168 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c @@ -19,7 +19,6 @@ */ #include "config.h" -#include "wine/port.h" #include "wine/asm.h" #ifdef __ASM_OBSOLETE @@ -29,10 +28,10 @@ #include #include #include +#include #include -#ifdef HAVE_UNISTD_H -# include -#endif +#include +#include #ifdef HAVE_PWD_H #include #endif diff --git a/libs/wine/debug.c b/libs/wine/debug.c index 95e6fe6e58c..9cb918d272d 100644 --- a/libs/wine/debug.c +++ b/libs/wine/debug.c @@ -19,7 +19,6 @@ */ #include "config.h" -#include "wine/port.h" #include "wine/asm.h" #ifdef __ASM_OBSOLETE @@ -29,9 +28,9 @@ #include #include #include -#ifdef HAVE_SYS_STAT_H -# include -#endif +#include +#include +#include #include "wine/debug.h" diff --git a/libs/wine/ldt.c b/libs/wine/ldt.c index 18b0b9be9bf..3fc1c0cb3d8 100644 --- a/libs/wine/ldt.c +++ b/libs/wine/ldt.c @@ -20,14 +20,15 @@ */ #include "config.h" -#include "wine/port.h" #include #include #include #include #include +#include #include +#include #include "windef.h" #include "winbase.h" diff --git a/libs/wine/loader.c b/libs/wine/loader.c index 4245beea94b..edb6e37061d 100644 --- a/libs/wine/loader.c +++ b/libs/wine/loader.c @@ -19,7 +19,6 @@ */ #include "config.h" -#include "wine/port.h" #include #include @@ -35,9 +34,8 @@ #ifdef HAVE_SYS_RESOURCE_H # include #endif -#ifdef HAVE_UNISTD_H -# include -#endif +#include +#include #ifdef __APPLE__ #include diff --git a/libs/wine/mmap.c b/libs/wine/mmap.c index b72d2af20d3..86b25b0a7ac 100644 --- a/libs/wine/mmap.c +++ b/libs/wine/mmap.c @@ -19,7 +19,6 @@ */ #include "config.h" -#include "wine/port.h" #include #include @@ -35,9 +34,7 @@ #ifdef HAVE_SYS_MMAN_H #include #endif -#ifdef HAVE_UNISTD_H -# include -#endif +#include #ifdef HAVE_STDINT_H # include #endif diff --git a/libs/wine/port.c b/libs/wine/port.c index ee804f414a0..b019e1d2fd4 100644 --- a/libs/wine/port.c +++ b/libs/wine/port.c @@ -19,7 +19,6 @@ */ #include "config.h" -#include "wine/port.h" #include "wine/asm.h" #ifdef __ASM_OBSOLETE