Andrew Geissler | 78b7279 | 2022-06-14 06:47:25 -0500 | [diff] [blame] | 1 | chkrootkit: Fix missing includes for musl |
| 2 | |
| 3 | |
| 4 | Upstream-Status: Backport |
| 5 | https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07737b95af2452c0055e1ed0660590c1487befdb |
| 6 | https://bugs.gentoo.org/715552 |
| 7 | |
| 8 | Signed-off-by: Armin Kuster <akuster808@gamil.com> |
| 9 | |
| 10 | Index: chkrootkit-0.55/chkdirs.c |
| 11 | =================================================================== |
| 12 | --- chkrootkit-0.55.orig/chkdirs.c |
| 13 | +++ chkrootkit-0.55/chkdirs.c |
| 14 | @@ -33,7 +33,7 @@ |
| 15 | #elif defined(__APPLE__) && defined(__MACH__) |
| 16 | #include <sys/syslimits.h> |
| 17 | #endif |
| 18 | - |
| 19 | +#include <limits.h> |
| 20 | #include <stdio.h> |
| 21 | #include <stdlib.h> |
| 22 | #include <sys/types.h> |
| 23 | Index: chkrootkit-0.55/chklastlog.c |
| 24 | =================================================================== |
| 25 | --- chkrootkit-0.55.orig/chklastlog.c |
| 26 | +++ chkrootkit-0.55/chklastlog.c |
| 27 | @@ -41,6 +41,7 @@ int main () { return 0; } |
| 28 | #include <stdlib.h> |
| 29 | #endif |
| 30 | #include <sys/stat.h> |
| 31 | +#include <fcntl.h> |
| 32 | #include <unistd.h> |
| 33 | #include <string.h> |
| 34 | #include <signal.h> |
| 35 | Index: chkrootkit-0.55/chkproc.c |
| 36 | =================================================================== |
| 37 | --- chkrootkit-0.55.orig/chkproc.c |
| 38 | +++ chkrootkit-0.55/chkproc.c |
| 39 | @@ -65,6 +65,7 @@ int main (){ return 0; } |
| 40 | #include <string.h> |
| 41 | #include <errno.h> |
| 42 | #include <sys/types.h> |
| 43 | +#include <fcntl.h> |
| 44 | #include <dirent.h> |
| 45 | #include <ctype.h> |
| 46 | #include <stdlib.h> |
| 47 | Index: chkrootkit-0.55/chkwtmp.c |
| 48 | =================================================================== |
| 49 | --- chkrootkit-0.55.orig/chkwtmp.c |
| 50 | +++ chkrootkit-0.55/chkwtmp.c |
| 51 | @@ -25,6 +25,7 @@ int main () { return 0; } |
| 52 | #include <stdio.h> |
| 53 | #include <stdlib.h> |
| 54 | #include <unistd.h> |
| 55 | +#include <fcntl.h> |
| 56 | #include <string.h> |
| 57 | #include <utmp.h> |
| 58 | #include <time.h> |