diff options
| -rw-r--r-- | meta-networking/recipes-connectivity/dibbler/dibbler/0001-port-linux-Re-order-header-includes.patch | 33 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/dibbler/dibbler_git.bb | 2 |
2 files changed, 35 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 0000000000..27a562bf22 --- /dev/null +++ b/meta-networking/recipes-connectivity/dibbler/dibbler/0001-port-linux-Re-order-header-includes.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From cbb33e1548fe526c3e7dead294617bde1f087ae3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 24 Aug 2022 16:40:38 -0700 | ||
| 4 | Subject: [PATCH] port-linux: Re-order header includes | ||
| 5 | |||
| 6 | linux/if.h when included before net/if.h casues duplicate definitions | ||
| 7 | |||
| 8 | Upstream-Status: Iappropriate [Upstream is Dead] | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | Port-linux/interface.c | 2 +- | ||
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/Port-linux/interface.c b/Port-linux/interface.c | ||
| 15 | index 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; | ||
diff --git a/meta-networking/recipes-connectivity/dibbler/dibbler_git.bb b/meta-networking/recipes-connectivity/dibbler/dibbler_git.bb index bdda35a24b..f57767e9b8 100644 --- a/meta-networking/recipes-connectivity/dibbler/dibbler_git.bb +++ b/meta-networking/recipes-connectivity/dibbler/dibbler_git.bb | |||
| @@ -9,6 +9,7 @@ SRCREV = "a7c6cf58a88a510cb00841351e75030ce78d36bf" | |||
| 9 | 9 | ||
| 10 | SRC_URI = "git://github.com/tomaszmrugalski/dibbler;branch=master;protocol=https \ | 10 | SRC_URI = "git://github.com/tomaszmrugalski/dibbler;branch=master;protocol=https \ |
| 11 | file://dibbler_fix_getSize_crash.patch \ | 11 | file://dibbler_fix_getSize_crash.patch \ |
| 12 | file://0001-port-linux-Re-order-header-includes.patch \ | ||
| 12 | " | 13 | " |
| 13 | PV = "1.0.1+1.0.2RC1+git${SRCREV}" | 14 | PV = "1.0.1+1.0.2RC1+git${SRCREV}" |
| 14 | 15 | ||
| @@ -29,6 +30,7 @@ inherit autotools | |||
| 29 | 30 | ||
| 30 | DEPENDS += "flex-native" | 31 | DEPENDS += "flex-native" |
| 31 | 32 | ||
| 33 | CFLAGS += "-D_GNU_SOURCE" | ||
| 32 | LDFLAGS += "-pthread" | 34 | LDFLAGS += "-pthread" |
| 33 | 35 | ||
| 34 | PACKAGES =+ "${PN}-requestor ${PN}-client ${PN}-relay ${PN}-server" | 36 | PACKAGES =+ "${PN}-requestor ${PN}-client ${PN}-relay ${PN}-server" |
