wvdial: fix build with gcc 4.7

This commit is contained in:
Juergen Daubert 2012-07-31 20:10:21 +02:00
parent 99ef3ad60c
commit 710b26e043
3 changed files with 16 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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 <unistd.h>
#include "wvstring.h"
#if WIN32