[packages/crossmingw32-glib2] - updated to 2.44.0 - enhanced win32 patch for two types missing in mingw32 API
qboosh
qboosh at pld-linux.org
Tue Mar 24 16:55:42 CET 2015
commit c1cc1c67ca8ec579583fe0490786aaab41a3d387
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Mar 24 16:57:21 2015 +0100
- updated to 2.44.0
- enhanced win32 patch for two types missing in mingw32 API
crossmingw32-glib2.spec | 6 +++---
glib2-win32.patch | 14 ++++++++++++++
2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/crossmingw32-glib2.spec b/crossmingw32-glib2.spec
index 747b39c..83d2c59 100644
--- a/crossmingw32-glib2.spec
+++ b/crossmingw32-glib2.spec
@@ -12,12 +12,12 @@ Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı
Summary(zh_CN.UTF-8): 实用工具函数库
%define realname glib
Name: crossmingw32-glib2
-Version: 2.42.2
+Version: 2.44.0
Release: 1
License: LGPL v2+
Group: Development/Libraries
-Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.42/glib-%{version}.tar.xz
-# Source0-md5: ae9ee104932657ed08ef4679556be07f
+Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.44/glib-%{version}.tar.xz
+# Source0-md5: 74cf7b4ea200b76e42a4c22c8daf0f93
Patch0: glib2-win32.patch
URL: http://www.gtk.org/
BuildRequires: autoconf >= 2.62
diff --git a/glib2-win32.patch b/glib2-win32.patch
index 5b82cc4..0415746 100644
--- a/glib2-win32.patch
+++ b/glib2-win32.patch
@@ -19,3 +19,17 @@
#include <stdlib.h>
#endif
+--- glib-2.44.0/gio/gwin32networking.h.orig 2015-03-20 18:33:38.000000000 +0100
++++ glib-2.44.0/gio/gwin32networking.h 2015-03-23 21:03:15.924279829 +0100
+@@ -24,8 +24,9 @@
+ /* Check if more ANSI-compliant Winsock2 functions are provided */
+ /* For run-time compatibility with Windows XP, remove when XP support dropped */
+
+-typedef INT (WSAAPI *PFN_InetPton) (INT, PCTSTR, PVOID);
+-typedef PCTSTR (WSAAPI *PFN_InetNtop) (INT, PVOID, PTSTR, size_t);
++typedef ULONG NET_IFINDEX;
++typedef INT (WSAAPI *PFN_InetPton) (INT, LPCTSTR, PVOID);
++typedef LPCTSTR (WSAAPI *PFN_InetNtop) (INT, PVOID, PTSTR, size_t);
+ typedef NET_IFINDEX (WINAPI *PFN_IfNameToIndex) (PCSTR);
+
+ typedef struct _GWin32WinsockFuncs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crossmingw32-glib2.git/commitdiff/c1cc1c67ca8ec579583fe0490786aaab41a3d387
More information about the pld-cvs-commit
mailing list