1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00

openntpd: patch missing includes to cdefs, fix build on musl

This commit is contained in:
Will Dietz 2017-09-22 14:00:46 -05:00
parent b4fa6da92b
commit a2eb1f4bd6

View file

@ -12,6 +12,11 @@ stdenv.mkDerivation rec {
sha256 = "1g6hi03ylhv47sbar3xxgsrar8schqfwn4glckh6m6lni67ndq85";
};
prePatch = ''
sed -i '20i#include <sys/cdefs.h>' src/ntpd.h
sed -i '19i#include <sys/cdefs.h>' src/log.c
'';
configureFlags = [
"--with-privsep-path=${privsepPath}"
"--with-privsep-user=${privsepUser}"