diff options
Diffstat (limited to 'vcpkg/ports/libsm/windows.patch')
| -rw-r--r-- | vcpkg/ports/libsm/windows.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/libsm/windows.patch b/vcpkg/ports/libsm/windows.patch new file mode 100644 index 0000000..abf52cb --- /dev/null +++ b/vcpkg/ports/libsm/windows.patch @@ -0,0 +1,22 @@ +diff --git a/src/sm_genid.c b/src/sm_genid.c +index 1a8b9a0ed..3726eb1d2 100644 +--- a/src/sm_genid.c ++++ b/src/sm_genid.c +@@ -64,7 +64,9 @@ in this Software without prior written authorization from The Open Group. + # include <X11/Xthreads.h> + #endif + #include <stdio.h> ++#ifdef HAVE_UNISTD_H + #include <unistd.h> ++#endif + + #include <time.h> + #define Time_t time_t +@@ -84,6 +86,7 @@ in this Software without prior written authorization from The Open Group. + + # include <X11/Xwinsock.h> + # include <X11/Xw32defs.h> ++# include <ws2ipdef.h> + # define X_INCLUDE_NETDB_H + # define XOS_USE_MTSAFE_NETDBAPI + # include <X11/Xos_r.h> |