[gimp] Fix Win32 build



commit 6d62a5e4feb4f2a3d8a6bd7706c87668cedfb223
Author: Tor Lillqvist <tml iki fi>
Date:   Thu Sep 2 19:34:51 2010 +0300

    Fix Win32 build
    
    No sa_family_t in winsock headers, so typedef it.

 plug-ins/script-fu/script-fu-server.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/script-fu/script-fu-server.c b/plug-ins/script-fu/script-fu-server.c
index 4b1030c..358f48b 100644
--- a/plug-ins/script-fu/script-fu-server.c
+++ b/plug-ins/script-fu/script-fu-server.c
@@ -38,6 +38,9 @@
 #define _WIN32_WINNT 0x0502
 #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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]