Fix wvdial build by inserting missing unistd.h includes
This commit is contained in:
parent
8f897d2d39
commit
ba4461f96f
2 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,8 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
find -type f | xargs sed -i 's@/bin/bash@bash@g'
|
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 ];
|
buildInputs = [ qt4 dbus zlib openssl readline perl ];
|
||||||
|
|
|
@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
|
||||||
export makeFlags="prefix=$out"
|
export makeFlags="prefix=$out"
|
||||||
# not sure about this line
|
# not sure about this line
|
||||||
sed -i 's@/etc/ppp/peers@$out/etc/ppp/peers@' Makefile.in
|
sed -i 's@/etc/ppp/peers@$out/etc/ppp/peers@' Makefile.in
|
||||||
|
|
||||||
|
sed -e '1i#include <unistd.h>' -i $(find . -name '*.cc')
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue