summaryrefslogtreecommitdiffstats
path: root/package/netsniff-ng/0002-proc.h-add-missing-headers.patch
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2017-04-19 21:31:47 +0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-04-20 23:30:09 +0200
commitf9e224a9702f921948595b8bf063166fcc61819e (patch)
treec89bbe7efc6a756b5f40fdc8448758060937d598 /package/netsniff-ng/0002-proc.h-add-missing-headers.patch
parenta72cdcb591c5fc6fd2619dc08a6a512ea276d9e9 (diff)
downloadbuildroot-f9e224a9702f921948595b8bf063166fcc61819e.tar.gz
buildroot-f9e224a9702f921948595b8bf063166fcc61819e.zip
netsniff-ng: bump to version 0.6.3
Drop upstream patch. Add two more patches to deal with musl build issues. Cc: Joris Lijssens <joris.lijssens@gmail.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/netsniff-ng/0002-proc.h-add-missing-headers.patch')
-rw-r--r--package/netsniff-ng/0002-proc.h-add-missing-headers.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/package/netsniff-ng/0002-proc.h-add-missing-headers.patch b/package/netsniff-ng/0002-proc.h-add-missing-headers.patch
new file mode 100644
index 0000000000..6968445659
--- /dev/null
+++ b/package/netsniff-ng/0002-proc.h-add-missing-headers.patch
@@ -0,0 +1,44 @@
+From 28773ac06d0e0f00d6a56973eacae4f5df9e8cc2 Mon Sep 17 00:00:00 2001
+From: Baruch Siach <baruch@tkos.co.il>
+Date: Sun, 16 Apr 2017 08:11:20 +0300
+Subject: [PATCH] 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 <baruch@tkos.co.il>
+---
+
+Patch status: sent upstream
+http://www.mail-archive.com/netsniff-ng%40googlegroups.com/msg01972.html
+
+ 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 <stdbool.h>
++#include <sys/stat.h>
++#include <sys/types.h>
+
+ extern void cpu_affinity(int cpu);
+ extern int set_proc_prio(int prio);
+--
+2.11.0
+
OpenPOWER on IntegriCloud