Module: wine Branch: master Commit: efe46a0483084abd570bdce15ea044e168d10441 URL: https://source.winehq.org/git/wine.git/?a=commit;h=efe46a0483084abd570bdce15...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Nov 3 10:42:59 2021 +0100
include: Don't include unistd.h in wine/port.h.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/win32u/freetype.c | 1 + dlls/wineandroid.drv/device.c | 1 + include/wine/port.h | 3 --- 3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/win32u/freetype.c b/dlls/win32u/freetype.c index 6e573b23cdf..70415d8a157 100644 --- a/dlls/win32u/freetype.c +++ b/dlls/win32u/freetype.c @@ -43,6 +43,7 @@ #endif #include <stdio.h> #include <assert.h> +#include <unistd.h>
#ifdef HAVE_CARBON_CARBON_H #define LoadResource __carbon_LoadResource diff --git a/dlls/wineandroid.drv/device.c b/dlls/wineandroid.drv/device.c index 4a16e6836ed..6ddb4b741eb 100644 --- a/dlls/wineandroid.drv/device.c +++ b/dlls/wineandroid.drv/device.c @@ -26,6 +26,7 @@ #include <stdio.h> #include <stdarg.h> #include <sys/ioctl.h> +#include <unistd.h>
#define NONAMELESSUNION #define NONAMELESSSTRUCT diff --git a/include/wine/port.h b/include/wine/port.h index 0e9911af9ad..bc71725ed4e 100644 --- a/include/wine/port.h +++ b/include/wine/port.h @@ -32,9 +32,6 @@ #include <sys/types.h> #include <string.h> #include <stdlib.h> -#ifdef HAVE_UNISTD_H -# include <unistd.h> -#endif
/****************************************************************