socklog: fixup implicit function declarations

This commit is contained in:
Joachim Fasting 2017-09-13 18:21:31 +02:00
parent 705f47f50e
commit aff74b6af7
No known key found for this signature in database
GPG Key ID: 66EAB6B14F6B6E0D

View File

@ -16,7 +16,13 @@ stdenv.mkDerivation rec {
outputs = [ "out" "man" "doc" ];
postPatch = ''
# Fails to run as user without supplementary groups
echo "int main() { return 0; }" >src/chkshsgr.c
# Fixup implicit function declarations
sed -i src/pathexec_run.c -e '1i#include <unistd.h>'
sed -i src/prot.c -e '1i#include <unistd.h>' -e '2i#include <grp.h>'
sed -i src/seek_set.c -e '1i#include <unistd.h>'
'';
configurePhase = ''