diff --git a/app-forensics/chkrootkit/chkrootkit-0.55.ebuild b/app-forensics/chkrootkit/chkrootkit-0.55.ebuild index a81de87dc1c11..2e00fa511121f 100644 --- a/app-forensics/chkrootkit/chkrootkit-0.55.ebuild +++ b/app-forensics/chkrootkit/chkrootkit-0.55.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -21,6 +21,8 @@ RDEPEND="cron? ( virtual/cron )" PATCHES=( "${WORKDIR}/${GENTOO_PATCH}" + "${FILESDIR}/${P}-fcntl_h.patch" + "${FILESDIR}/${P}-limits_h.patch" ) src_prepare() { diff --git a/app-forensics/chkrootkit/files/chkrootkit-0.55-fcntl_h.patch b/app-forensics/chkrootkit/files/chkrootkit-0.55-fcntl_h.patch new file mode 100644 index 0000000000000..26ab42c0e4378 --- /dev/null +++ b/app-forensics/chkrootkit/files/chkrootkit-0.55-fcntl_h.patch @@ -0,0 +1,30 @@ +--- a/chklastlog.c ++++ b/chklastlog.c +@@ -41,6 +41,7 @@ int main () { return 0; } + #include + #endif + #include ++#include + #include + #include + #include +--- a/chkproc.c ++++ b/chkproc.c +@@ -62,6 +62,7 @@ int main (){ return 0; } + #include + #include + #include ++#include + #include + #include + #include +--- a/chkwtmp.c ++++ b/chkwtmp.c +@@ -25,6 +25,7 @@ int main () { return 0; } + #include + #include + #include ++#include + #include + #include + #include diff --git a/app-forensics/chkrootkit/files/chkrootkit-0.55-limits_h.patch b/app-forensics/chkrootkit/files/chkrootkit-0.55-limits_h.patch new file mode 100644 index 0000000000000..8046e94889924 --- /dev/null +++ b/app-forensics/chkrootkit/files/chkrootkit-0.55-limits_h.patch @@ -0,0 +1,10 @@ +--- a/chkdirs.c ++++ b/chkdirs.c +@@ -33,6 +33,7 @@ + #include + #endif + ++#include + #include + #include + #include