Solve build problems on older systems.

(Logical change 1.27)
This commit is contained in:
osdl.org!shemminger 2004-06-09 22:51:59 +00:00
parent a45308b25a
commit a7452b20cd
2 changed files with 10 additions and 5 deletions

View File

@ -17,19 +17,22 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <linux/netdevice.h>
#include <linux/if_arp.h>
#include <linux/sockios.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <string.h> #include <string.h>
char * ll_type_n2a(int type, char *buf, int len) #include <linux/netdevice.h>
#include <linux/if_arp.h>
#include <linux/sockios.h>
#include "rt_names.h"
const char * ll_type_n2a(int type, char *buf, int len)
{ {
#define __PF(f,n) { ARPHRD_##f, #n }, #define __PF(f,n) { ARPHRD_##f, #n },
static struct { static struct {
int type; int type;
char *name; const char *name;
} arphrd_names[] = { } arphrd_names[] = {
{ 0, "generic" }, { 0, "generic" },
__PF(ETHER,ether) __PF(ETHER,ether)

View File

@ -71,7 +71,9 @@ static char * rtnl_rtprot_tab[256] = {
[RTPROT_ZEBRA] ="zebra", [RTPROT_ZEBRA] ="zebra",
[RTPROT_BIRD] = "bird", [RTPROT_BIRD] = "bird",
[RTPROT_DNROUTED] = "dnrouted", [RTPROT_DNROUTED] = "dnrouted",
#ifdef RTPROT_XORP
[RTPROT_XORP] = "xorp", [RTPROT_XORP] = "xorp",
#endif
}; };