3
0
Fork 0
forked from mirrors/nixpkgs

diod: fix build w/glibc-2.30

For compatibility with newer glibc versions, `sys/sysmacros.h` needs to
be included.
This commit is contained in:
Maximilian Bosch 2020-01-20 15:59:20 +01:00
parent 8045baf09d
commit 894da51750
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -13,6 +13,7 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace diod/xattr.c --replace attr/xattr.h sys/xattr.h
sed -i -e '/sys\/types\.h>/a #include <sys/sysmacros.h>' diod/ops.c
'';
buildInputs = [ munge lua libcap perl ncurses ];