From 710b26e043ee4492b3eede2ca7bd442a0634178b Mon Sep 17 00:00:00 2001 From: Juergen Daubert Date: Tue, 31 Jul 2012 20:10:21 +0200 Subject: [PATCH] wvdial: fix build with gcc 4.7 --- wvdial/.md5sum | 1 + wvdial/Pkgfile | 5 +++-- wvdial/wvstreams-4.6.1-gcc47.patch | 12 ++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 wvdial/wvstreams-4.6.1-gcc47.patch diff --git a/wvdial/.md5sum b/wvdial/.md5sum index 0c3112744..476263bee 100644 --- a/wvdial/.md5sum +++ b/wvdial/.md5sum @@ -1,5 +1,6 @@ 03c2263f4c4cdde3a0f82d983f7ab35c wvdial-1.61.patch acd3b2050c9b65fff2aecda6576ee7bc wvdial-1.61.tar.gz +55223f12591529d2a2a1892cb2a261d1 wvstreams-4.6.1-gcc47.patch 03786884a06fe119f6201dcc8a40639d wvstreams-4.6.1-include_stat.patch 1d224fb5dcde664258f681db2f422737 wvstreams-4.6.1-openssl.patch 2760dac31a43d452a19a3147bfde571c wvstreams-4.6.1.tar.gz diff --git a/wvdial/Pkgfile b/wvdial/Pkgfile index 495a6da73..a97cedbd3 100644 --- a/wvdial/Pkgfile +++ b/wvdial/Pkgfile @@ -5,16 +5,17 @@ name=wvdial version=1.61 -release=3 +release=4 source=(http://wvstreams.googlecode.com/files/$name-$version.tar.gz \ http://wvstreams.googlecode.com/files/wvstreams-4.6.1.tar.gz \ $name-$version.patch wvstreams-4.6.1-openssl.patch \ - wvstreams-4.6.1-include_stat.patch) + wvstreams-4.6.1-include_stat.patch wvstreams-4.6.1-gcc47.patch) build() { cd wvstreams-4.6.1 patch -p1 -i $SRC/wvstreams-4.6.1-openssl.patch patch -p1 -i $SRC/wvstreams-4.6.1-include_stat.patch + patch -p1 -i $SRC/wvstreams-4.6.1-gcc47.patch ./configure --prefix=/usr --without-{pam,tcl,qt,dbus} make -j1 diff --git a/wvdial/wvstreams-4.6.1-gcc47.patch b/wvdial/wvstreams-4.6.1-gcc47.patch new file mode 100644 index 000000000..0f8d719d8 --- /dev/null +++ b/wvdial/wvstreams-4.6.1-gcc47.patch @@ -0,0 +1,12 @@ +# http://code.google.com/p/wvstreams/issues/detail?id=34 + +--- wvstreams-4.6.1-dist/include/wvuid.h 2012-01-05 10:18:58.713661236 +0100 ++++ wvstreams-4.6.1/include/wvuid.h 2012-01-05 10:27:42.198435328 +0100 +@@ -7,6 +7,7 @@ + #ifndef __WVUID_H + #define __WVUID_H + ++#include + #include "wvstring.h" + + #if WIN32