Subject: Bug#3979: <linux/if_arp.h> needs further includes

From: Ian Jackson <[email-masked]>
Date: Wed, 31 Jul 96 14:39 BST

Package: libc5-dev
Version: 5.2.18-9

As you can see below, <linux/if_arp.h> should include
<linux/netdevice.h> and <linux/if.h>.

Ian.

-chiark:~/junk> cat >u.c
#include <linux/if_arp.h>
-chiark:~/junk> gcc -c u.c
In file included from u.c:1:
/usr/include/linux/if_arp.h:64: field `arp_pa' has incomplete type
/usr/include/linux/if_arp.h:65: field `arp_ha' has incomplete type
/usr/include/linux/if_arp.h:67: field `arp_netmask' has incomplete type
/usr/include/linux/if_arp.h:72: field `arp_pa' has incomplete type
/usr/include/linux/if_arp.h:73: field `arp_ha' has incomplete type
/usr/include/linux/if_arp.h:75: field `arp_netmask' has incomplete type
/usr/include/linux/if_arp.h:119: parse error before `__u32'
/usr/include/linux/if_arp.h:119: warning: no semicolon at end of struct or union
/usr/include/linux/if_arp.h:123: `MAX_ADDR_LEN' undeclared here (not in a function)
/usr/include/linux/if_arp.h:124: parse error before `}'
-chiark:~/junk> cat >u.c
#include <linux/if.h>
#include <linux/if_arp.h>
-chiark:~/junk> gcc -c u.c
In file included from u.c:2:
/usr/include/linux/if_arp.h:123: `MAX_ADDR_LEN' undeclared here (not in a function)
-chiark:~/junk> cat >u.c
#include <linux/if.h>
#include <linux/netdevice.h>
#include <linux/if_arp.h>
-chiark:~/junk> gcc -c u.c
-chiark:~/junk>