diod: fix build w/glibc-2.30

For compatibility with newer glibc versions, `sys/sysmacros.h` needs to
be included.
wip/yesman
Maximilian Bosch 5 years ago
parent 8045baf09d
commit 894da51750
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
  1. 1
      pkgs/servers/diod/default.nix

@ -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 ];

Loading…
Cancel
Save