summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/dibbler/dibbler
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-08-24 16:54:40 -0700
committerKhem Raj <raj.khem@gmail.com>2022-08-25 08:01:35 -0700
commit68c96b4ac30e7c47e6638d91e7b416438b190382 (patch)
treebdd628e7a3be9ccb8a11c5ecaa478d663a3ff57f /meta-networking/recipes-connectivity/dibbler/dibbler
parentc939359a0271bcdaf56e702a20cfd8bb037808aa (diff)
downloadmeta-openembedded-68c96b4ac30e7c47e6638d91e7b416438b190382.tar.gz
dibbler: Fix build with musl
Use _GNU_SOURCE to compile which helps fixing build with musl add a header reordering patch to again fix another issue with musl builds Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/dibbler/dibbler')
-rw-r--r--meta-networking/recipes-connectivity/dibbler/dibbler/0001-port-linux-Re-order-header-includes.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/dibbler/dibbler/0001-port-linux-Re-order-header-includes.patch b/meta-networking/recipes-connectivity/dibbler/dibbler/0001-port-linux-Re-order-header-includes.patch
new file mode 100644
index 000000000..27a562bf2
--- /dev/null
+++ b/meta-networking/recipes-connectivity/dibbler/dibbler/0001-port-linux-Re-order-header-includes.patch
@@ -0,0 +1,33 @@
1From cbb33e1548fe526c3e7dead294617bde1f087ae3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 24 Aug 2022 16:40:38 -0700
4Subject: [PATCH] port-linux: Re-order header includes
5
6linux/if.h when included before net/if.h casues duplicate definitions
7
8Upstream-Status: Iappropriate [Upstream is Dead]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 Port-linux/interface.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/Port-linux/interface.c b/Port-linux/interface.c
15index 18777e91..19aefb2b 100644
16--- a/Port-linux/interface.c
17+++ b/Port-linux/interface.c
18@@ -25,7 +25,6 @@
19 #include <sys/types.h>
20 #include <sys/socket.h>
21 #include <sys/ioctl.h>
22-#include <linux/if.h>
23 #include <syslog.h>
24 #include <string.h>
25 #include <errno.h>
26@@ -42,6 +41,7 @@
27 #include <stdarg.h>
28 #include <linux/sockios.h>
29 #include <linux/if_ether.h>
30+#include <linux/if.h>
31
32 int interface_auto_up = 0;
33 int interface_do_message = 0;