wvdial: include stat.h to build with glibc 2.12

This commit is contained in:
Juergen Daubert 2010-08-06 13:01:10 +02:00
parent c4e3afdc99
commit 8c4671af35
3 changed files with 32 additions and 2 deletions

View File

@ -1,4 +1,5 @@
03c2263f4c4cdde3a0f82d983f7ab35c wvdial-1.61.patch
acd3b2050c9b65fff2aecda6576ee7bc wvdial-1.61.tar.gz
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,14 +5,16 @@
name=wvdial
version=1.61
release=2
release=3
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)
$name-$version.patch wvstreams-4.6.1-openssl.patch \
wvstreams-4.6.1-include_stat.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
./configure --prefix=/usr --without-{pam,tcl,qt,dbus}
make -j1

View File

@ -0,0 +1,27 @@
# http://code.google.com/p/wvstreams/issues/detail?id=28
diff -Nru wvstreams-4.6.1.orig/ipstreams/wvunixdgsocket.cc wvstreams-4.6.1/ipstreams/wvunixdgsocket.cc
--- wvstreams-4.6.1.orig/ipstreams/wvunixdgsocket.cc 2010-08-05 18:19:24.572113629 +0200
+++ wvstreams-4.6.1/ipstreams/wvunixdgsocket.cc 2010-08-05 18:19:54.071829657 +0200
@@ -1,8 +1,6 @@
#include "wvunixdgsocket.h"
-#ifdef MACOS
#include <sys/types.h>
#include <sys/stat.h>
-#endif
WvUnixDGSocket::WvUnixDGSocket(WvStringParm filename, bool _server, int perms)
: socketfile(filename)
diff -Nru wvstreams-4.6.1.orig/streams/wvatomicfile.cc wvstreams-4.6.1/streams/wvatomicfile.cc
--- wvstreams-4.6.1.orig/streams/wvatomicfile.cc 2010-08-05 18:19:24.582113531 +0200
+++ wvstreams-4.6.1/streams/wvatomicfile.cc 2010-08-05 18:20:22.271557390 +0200
@@ -11,9 +11,7 @@
#include "wvfileutils.h"
#include "wvstrutils.h"
-#ifdef MACOS
#include <sys/stat.h>
-#endif
WvAtomicFile::WvAtomicFile(WvStringParm filename, int flags, mode_t create_mode)
: tmp_file(WvString::null)