Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From 29b37e45577c0921846c1709a190f08a3b032666 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 8 Mar 2019 09:08:38 -0800 |
| 4 | Subject: [PATCH] IFNAMSIZ is defined in net/if.h |
| 5 | |
| 6 | Fixes |
| 7 | /mnt/a/yoe/build/tmp/work/qemuriscv64-yoe-linux-musl/linux-atm/2.5.2-r0/recipe-sysroot/usr/include/linux/if_arp.h:121:16: error: 'IFNAMSIZ' undeclared here (not in a function) |
| 8 | | char arp_dev[IFNAMSIZ]; |
| 9 | | ^~~~~~~~ |
| 10 | In file included from ../../../linux-atm-2.5.2/src/arpd/itf.c:17: |
| 11 | /mnt/a/yoe/build/tmp/work/qemuriscv64-yoe-linux-musl/linux-atm/2.5.2-r0/recipe-sysroot/usr/include/linux/if_arp.h:121:16: error: 'IFNAMSIZ' undeclared here (not in a function) |
| 12 | | char arp_dev[IFNAMSIZ]; |
| 13 | | ^~~~~~~~ |
| 14 | |
| 15 | Upstream-Status: Pending |
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 17 | --- |
| 18 | src/arpd/arp.c | 1 + |
| 19 | src/arpd/itf.c | 1 + |
| 20 | 2 files changed, 2 insertions(+) |
| 21 | |
| 22 | diff --git a/src/arpd/arp.c b/src/arpd/arp.c |
| 23 | index 92d3787..ff1574c 100644 |
| 24 | --- a/src/arpd/arp.c |
| 25 | +++ b/src/arpd/arp.c |
| 26 | @@ -17,6 +17,7 @@ |
| 27 | #include <netinet/in.h> /* for ntohs, etc. */ |
| 28 | #define _LINUX_NETDEVICE_H /* very crude hack for glibc2 */ |
| 29 | #include <linux/types.h> |
| 30 | +#include <net/if.h> |
| 31 | #include <linux/if_arp.h> |
| 32 | #include <linux/if_ether.h> |
| 33 | #include <atm.h> |
| 34 | diff --git a/src/arpd/itf.c b/src/arpd/itf.c |
| 35 | index 92f0951..d285e3b 100644 |
| 36 | --- a/src/arpd/itf.c |
| 37 | +++ b/src/arpd/itf.c |
| 38 | @@ -14,6 +14,7 @@ |
| 39 | #include <sys/socket.h> |
| 40 | #define _LINUX_NETDEVICE_H /* glibc2 */ |
| 41 | #include <linux/types.h> |
| 42 | +#include <net/if.h> |
| 43 | #include <linux/if_arp.h> |
| 44 | |
| 45 | #include "atmd.h" |
| 46 | -- |
| 47 | 2.21.0 |
| 48 | |