summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/nicstat/nicstat
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-07-17 20:10:10 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-07-24 18:58:51 +0200
commit4022026b7ed9eb2e521c3c47b06f12cfb721dabf (patch)
tree82891aaffb35f2f717b870849638df148ce9afc8 /meta-oe/recipes-extended/nicstat/nicstat
parentcaf460d7fc1b6e22e23504a52dd1ba5ed9194791 (diff)
downloadmeta-openembedded-4022026b7ed9eb2e521c3c47b06f12cfb721dabf.tar.gz
nicstat: Fix build on musl/x86_64
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/nicstat/nicstat')
-rw-r--r--meta-oe/recipes-extended/nicstat/nicstat/0001-nicstat.c-Do-not-define-uint64_t-and-uint32_t.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/nicstat/nicstat/0001-nicstat.c-Do-not-define-uint64_t-and-uint32_t.patch b/meta-oe/recipes-extended/nicstat/nicstat/0001-nicstat.c-Do-not-define-uint64_t-and-uint32_t.patch
new file mode 100644
index 000000000..a208f97eb
--- /dev/null
+++ b/meta-oe/recipes-extended/nicstat/nicstat/0001-nicstat.c-Do-not-define-uint64_t-and-uint32_t.patch
@@ -0,0 +1,37 @@
1From 52590fbf735cef3fec85a042458aa89a02c52b57 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 15 Jul 2017 11:33:12 -0700
4Subject: [PATCH] nicstat.c: Do not define uint64_t and uint32_t
5
6Use the defines from platform
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9
10---
11 nicstat.c | 3 +--
12 1 file changed, 1 insertion(+), 2 deletions(-)
13
14diff --git a/nicstat.c b/nicstat.c
15index 83ad557..2a6e0c1 100644
16--- a/nicstat.c
17+++ b/nicstat.c
18@@ -32,6 +32,7 @@
19
20 #include <stdio.h>
21 #include <stdlib.h>
22+#include <stdint.h>
23 #include <unistd.h>
24 #include <string.h>
25 #include <ctype.h>
26@@ -88,8 +89,6 @@
27 #define PROC_NET_BUFSIZ (128 * 1024)
28 #define PROC_UPTIME "/proc/uptime"
29 /* Needs to be fixed if not built under ILP32 */
30-typedef unsigned long long uint64_t;
31-typedef unsigned int uint32_t;
32 extern char *optarg;
33 extern int optind, opterr, optopt;
34 #endif /* OS_LINUX */
35--
362.13.3
37