[gimp/gimp-2-6] script-fu: Add some missing includes and macros for win32
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-6] script-fu: Add some missing includes and macros for win32
- Date: Sun, 5 Feb 2012 18:25:31 +0000 (UTC)
commit 33b8d35da479324c2e37a7b95533bf93b42410bc
Author: Mukund Sivaraman <muks banu com>
Date: Sun Feb 5 23:54:35 2012 +0530
script-fu: Add some missing includes and macros for win32
This is based on commit 6d62a5e4feb4f2a3d8a6bd7706c87668cedfb223 from
master.
plug-ins/script-fu/script-fu-server.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/script-fu/script-fu-server.c b/plug-ins/script-fu/script-fu-server.c
index af2b296..39483f5 100644
--- a/plug-ins/script-fu/script-fu-server.c
+++ b/plug-ins/script-fu/script-fu-server.c
@@ -37,6 +37,16 @@
#ifdef G_OS_WIN32
#include <winsock2.h>
+#include <ws2tcpip.h>
+
+typedef short sa_family_t; /* Not defined by winsock */
+
+#ifndef AI_ADDRCONFIG
+/* Missing from mingw headers, but value is publicly documented
+ * on http://msdn.microsoft.com/en-us/library/ms737530%28v=VS.85%29.aspx
+ */
+#define AI_ADDRCONFIG 0x0400
+#endif
#include <libgimpbase/gimpwin32-io.h>
#else
#include <sys/socket.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]