/pidgin/main: bf491142b9ce: Fix win32 build

Tomasz Wasilczyk twasilczyk at pidgin.im
Fri Feb 28 11:09:10 EST 2014


Changeset: bf491142b9ce3bdf0b10f85fe5278bdd8af3559c
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-02-28 17:09 +0100
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/bf491142b9ce

Description:

Fix win32 build

diffstat:

 libpurple/plugins/perl/Makefile.mingw        |  3 +++
 libpurple/plugins/perl/common/Makefile.mingw |  3 +++
 libpurple/protocols/mxit/markup.c            |  2 +-
 pidgin/plugins/perl/common/Makefile.mingw    |  3 +++
 4 files changed, 10 insertions(+), 1 deletions(-)

diffs (51 lines):

diff --git a/libpurple/plugins/perl/Makefile.mingw b/libpurple/plugins/perl/Makefile.mingw
--- a/libpurple/plugins/perl/Makefile.mingw
+++ b/libpurple/plugins/perl/Makefile.mingw
@@ -7,6 +7,9 @@
 PIDGIN_TREE_TOP := ../../..
 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
 
+#we cannot include win32dep.h, but we need struct sockaddr_in6 definition
+CFLAGS += -include ws2tcpip.h
+
 DEFINES := $(subst -DWIN32_LEAN_AND_MEAN,,$(DEFINES))
 
 TARGET = perl
diff --git a/libpurple/plugins/perl/common/Makefile.mingw b/libpurple/plugins/perl/common/Makefile.mingw
--- a/libpurple/plugins/perl/common/Makefile.mingw
+++ b/libpurple/plugins/perl/common/Makefile.mingw
@@ -7,6 +7,9 @@
 PIDGIN_TREE_TOP := ../../../..
 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
 
+#we cannot include win32dep.h, but we need struct sockaddr_in6 definition
+CFLAGS += -include ws2tcpip.h
+
 GCCWARNINGS += -Wno-comment -Wno-unused -Wno-nested-externs
 
 DEFINES := $(subst -DWIN32_LEAN_AND_MEAN,,$(DEFINES))
diff --git a/libpurple/protocols/mxit/markup.c b/libpurple/protocols/mxit/markup.c
--- a/libpurple/protocols/mxit/markup.c
+++ b/libpurple/protocols/mxit/markup.c
@@ -213,7 +213,7 @@ static int asn_getUtf8( const gchar* dat
 		return -1;
 	}
 
-	len = (uint8_t)data[1]; /* length field [1 byte] */
+	len = (guint8)data[1]; /* length field [1 byte] */
 	out_str = g_malloc(len + 1);
 	memcpy(out_str, &data[2], len); /* data field */
 	out_str[len] = '\0';
diff --git a/pidgin/plugins/perl/common/Makefile.mingw b/pidgin/plugins/perl/common/Makefile.mingw
--- a/pidgin/plugins/perl/common/Makefile.mingw
+++ b/pidgin/plugins/perl/common/Makefile.mingw
@@ -7,6 +7,9 @@
 PIDGIN_TREE_TOP := ../../../..
 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
 
+#we cannot include win32dep.h, but we need struct sockaddr_in6 definition
+CFLAGS += -include ws2tcpip.h
+
 GCCWARNINGS += -Wno-comment -Wno-unused -Wno-nested-externs
 
 DEFINES := $(subst -DWIN32_LEAN_AND_MEAN,,$(DEFINES))



More information about the Commits mailing list