Fix wvdial build by inserting missing unistd.h includes
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user