Fix wvdial build by inserting missing unistd.h includes

This commit is contained in:
Michael Raskin 2014-02-02 19:18:09 +04:00
parent 8f897d2d39
commit ba4461f96f
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,8 @@ stdenv.mkDerivation {
preConfigure = ''
find -type f | xargs sed -i 's@/bin/bash@bash@g'
sed -e '1i#include <unistd.h>' -i $(find . -name '*.c' -o -name '*.cc')
'';
buildInputs = [ qt4 dbus zlib openssl readline perl ];

View File

@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
export makeFlags="prefix=$out"
# not sure about this line
sed -i 's@/etc/ppp/peers@$out/etc/ppp/peers@' Makefile.in
sed -e '1i#include <unistd.h>' -i $(find . -name '*.cc')
'';
meta = {