Re: [netsniff-ng] [PATCH 1/2] proc.h: add missing headers
Hi Baruch On 2017-04-16 at 07:22:20 +0200, Baruch Siachwrote: > ino_t and pid_t require stat.h and types.h, respectively. Fixes the following > build failure with musl libc: > > In file included from cpp.c:7:0: > proc.h:11:31: error: unknown type name ‘ino_t’ > extern int proc_find_by_inode(ino_t ino, char *cmdline, size_t len, pid_t > *pid); >^ > proc.h:11:69: error: unknown type name ‘pid_t’ > extern int proc_find_by_inode(ino_t ino, char *cmdline, size_t len, pid_t > *pid); > ^ > proc.h:12:25: error: unknown type name ‘pid_t’ > extern bool proc_exists(pid_t pid); > ^ > > Signed-off-by: Baruch Siach I already applied a similar patch in commit a9f4431e0a20 ("proc: include headers to get definitions for ino_t and pid_t") but missed to add sys/stat.h, so I'll apply a modified version of your patch. Thanks! -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to netsniff-ng+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[netsniff-ng] [PATCH 1/2] proc.h: add missing headers
ino_t and pid_t require stat.h and types.h, respectively. Fixes the following build failure with musl libc: In file included from cpp.c:7:0: proc.h:11:31: error: unknown type name ‘ino_t’ extern int proc_find_by_inode(ino_t ino, char *cmdline, size_t len, pid_t *pid); ^ proc.h:11:69: error: unknown type name ‘pid_t’ extern int proc_find_by_inode(ino_t ino, char *cmdline, size_t len, pid_t *pid); ^ proc.h:12:25: error: unknown type name ‘pid_t’ extern bool proc_exists(pid_t pid); ^ Signed-off-by: Baruch Siach--- proc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proc.h b/proc.h index 4c34a6412a81..2ce0c6e7a932 100644 --- a/proc.h +++ b/proc.h @@ -2,6 +2,8 @@ #define PROC_H #include +#include +#include extern void cpu_affinity(int cpu); extern int set_proc_prio(int prio); -- 2.11.0 -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to netsniff-ng+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.