Skip to contentSkip to conversation

wvstreams fix

PATCH Ming Chow 周明 1 participant 1 message May 17, 2009

lore
Share & tools
lore
#0 lore raw

wvstreams compile failed with gcc-4.3.x.
here is my patch to fix it up.

recipes/wvstreams/wvstreams-4.4.1/wvstreams-4.4.1-gcc-4.3-compile.patch new file +23 -0
new file mode 100644
index 0000000..fd6f951
@@ -0,0 +1,23 @@
+diff -urN wvstreams-4.4.1-orig/include/uniconfkey.h wvstreams-4.4.1/include/uniconfkey.h
+--- wvstreams-4.4.1-orig/include/uniconfkey.h	2009-05-17 15:52:15.761594425 +0800
++++ wvstreams-4.4.1/include/uniconfkey.h	2009-05-17 15:51:49.290819209 +0800
+@@ -9,6 +9,7 @@
+ 
+ #include "wvstring.h"
+ #include "wvlinklist.h"
++#include <limits.h>
+ 
+ 
+ // The Python headers try to #define ANY as void.  If we're building Python
+diff -urN wvstreams-4.4.1-orig/include/wvserialize.h wvstreams-4.4.1/include/wvserialize.h
+--- wvstreams-4.4.1-orig/include/wvserialize.h	2009-05-17 15:52:21.970914867 +0800
++++ wvstreams-4.4.1/include/wvserialize.h	2009-05-17 15:51:49.300819143 +0800
+@@ -349,7 +349,7 @@
+  * except as the last character.
+  */
+ template <>
+-extern WvString _wv_deserialize<WvString>(WvBuf &buf);
++WvString _wv_deserialize<WvString>(WvBuf &buf);
+ 
+ 
+ /** Deserialize a WvBuf. */
recipes/wvstreams/wvstreams_4.4.1.bb +3 -2
index 8cf1d1b..7dcc126 100644
@@ -3,10 +3,11 @@ LICENSE = "LGPL"
 DESCRIPTION = "WvStreams is a network programming library in C++"
 DEPENDS = "zlib openssl (>= 0.9.8)"
 
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "http://wvstreams.googlecode.com/files/${PN}-${PV}.tar.gz \
-           file://build-fixes-and-sanity.patch;patch=1 "
+           file://build-fixes-and-sanity.patch;patch=1 \
+           file://wvstreams-4.4.1-gcc-4.3-compile.patch;patch=1 "
 
 inherit autotools pkgconfig