1 This fixes the following compile problem with kernel 4.20:
3 In file included from arp.c:20:0:
4 include/linux/if_arp.h:121:16: error: 'IFNAMSIZ' undeclared here (not in a function)
5 char arp_dev[IFNAMSIZ];
7 make[7]: *** [Makefile:459: arp.o] Error 1
9 This is caused by commit 6a12709da354 ("net: if_arp: use define instead
10 of hard-coded value") in the upstream Linux kernel which is integrated
17 #include <netinet/in.h>
19 -#define _LINUX_NETDEVICE_H /* glibc2 */
20 #include <linux/types.h>
21 #include <linux/if_arp.h>
26 #include <sys/types.h>
27 #include <linux/atmclip.h>
28 #include <sys/socket.h>
29 -#define _LINUX_NETDEVICE_H /* glibc2 */
30 #include <linux/types.h>
31 #include <linux/if_arp.h>
37 #include <linux/atmclip.h> /* for CLIP_DEFAULT_IDLETIMER */
38 #include <linux/atmarp.h>
39 -#define _LINUX_NETDEVICE_H /* glibc2 */
40 #include <linux/types.h>
41 #include <linux/if_arp.h>
46 #include <sys/types.h>
47 #include <sys/socket.h> /* for linux/if_arp.h */
48 #include <netinet/in.h> /* for ntohs, etc. */
49 -#define _LINUX_NETDEVICE_H /* very crude hack for glibc2 */
50 #include <linux/types.h>
51 #include <linux/if_arp.h>
52 #include <linux/if_ether.h>