Commit ef6e33f8 authored by Alexandre Julliard's avatar Alexandre Julliard

include: Don't include wine/port.h in Unix libraries.

parent ef9a0f3b
...@@ -23,13 +23,14 @@ ...@@ -23,13 +23,14 @@
#endif #endif
#include "config.h" #include "config.h"
#include "wine/port.h"
#ifdef HAVE_GNUTLS_CIPHER_INIT #ifdef HAVE_GNUTLS_CIPHER_INIT
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
#include <sys/types.h>
#include <dlfcn.h>
#include <gnutls/gnutls.h> #include <gnutls/gnutls.h>
#include <gnutls/crypto.h> #include <gnutls/crypto.h>
#include <gnutls/abstract.h> #include <gnutls/abstract.h>
......
...@@ -23,7 +23,9 @@ ...@@ -23,7 +23,9 @@
#endif #endif
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <sys/types.h>
#include <dlfcn.h>
#ifdef HAVE_FT2BUILD_H #ifdef HAVE_FT2BUILD_H
#include <ft2build.h> #include <ft2build.h>
......
...@@ -26,10 +26,13 @@ ...@@ -26,10 +26,13 @@
#endif #endif
#include "config.h" #include "config.h"
#if defined(SONAME_LIBKRB5) && defined(SONAME_LIBGSSAPI_KRB5) #if defined(SONAME_LIBKRB5) && defined(SONAME_LIBGSSAPI_KRB5)
#include "wine/port.h"
#include <stdarg.h> #include <stdarg.h>
#include <sys/types.h>
#include <dlfcn.h>
#ifdef HAVE_KRB5_KRB5_H #ifdef HAVE_KRB5_KRB5_H
# include <krb5/krb5.h> # include <krb5/krb5.h>
#endif #endif
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#endif #endif
#include "config.h" #include "config.h"
#include "wine/port.h"
#ifdef SONAME_LIBNETAPI #ifdef SONAME_LIBNETAPI
...@@ -32,12 +31,10 @@ ...@@ -32,12 +31,10 @@
#include <stdlib.h> #include <stdlib.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_SYS_WAIT_H #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #include <dlfcn.h>
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
......
...@@ -29,10 +29,11 @@ ...@@ -29,10 +29,11 @@
#endif #endif
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h>
#include <dlfcn.h>
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
......
...@@ -24,12 +24,13 @@ ...@@ -24,12 +24,13 @@
#endif #endif
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <sys/types.h>
#include <dlfcn.h>
#ifdef SONAME_LIBGNUTLS #ifdef SONAME_LIBGNUTLS
#include <gnutls/gnutls.h> #include <gnutls/gnutls.h>
#include <gnutls/crypto.h> #include <gnutls/crypto.h>
......
...@@ -23,7 +23,9 @@ ...@@ -23,7 +23,9 @@
#endif #endif
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <sys/types.h>
#include <dlfcn.h>
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
......
...@@ -26,14 +26,13 @@ ...@@ -26,14 +26,13 @@
#endif #endif
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_SYS_STAT_H #include <dlfcn.h>
# include <sys/stat.h>
#endif
#ifdef HAVE_SYS_MMAN_H #ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h> # include <sys/mman.h>
#endif #endif
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
#endif #endif
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <stdarg.h> #include <stdarg.h>
#include <sys/types.h>
#if defined(HAVE_IOKIT_HID_IOHIDLIB_H) #if defined(HAVE_IOKIT_HID_IOHIDLIB_H)
#define DWORD UInt32 #define DWORD UInt32
......
...@@ -23,14 +23,14 @@ ...@@ -23,14 +23,14 @@
#endif #endif
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_UNISTD_H #include <unistd.h>
# include <unistd.h> #include <sys/types.h>
#endif #include <dlfcn.h>
#ifdef HAVE_SDL_H #ifdef HAVE_SDL_H
# include <SDL.h> # include <SDL.h>
#endif #endif
......
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
# error You must include port.h before all other headers # error You must include port.h before all other headers
#endif #endif
#ifdef WINE_UNIX_LIB
# error port.h should not be used in Unix libraries
#endif
#include <sys/types.h> #include <sys/types.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment