Eliminate most instances where we use linux kernel headers

-Erik
This commit is contained in:
Eric Andersen
2003-01-14 08:54:08 +00:00
parent 92a06d0943
commit ab4e19afc6
6 changed files with 38 additions and 17 deletions

View File

@ -18,10 +18,15 @@
#include <string.h>
#include <unistd.h>
#include <linux/if.h>
#include <linux/if_packet.h>
#include <net/if.h>
#include <net/if_packet.h>
#include <netpacket/packet.h>
#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1
#include <net/ethernet.h>
#else
#include <linux/if_ether.h>
#include <linux/sockios.h>
#endif
#include "rt_names.h"
#include "utils.h"
@ -29,6 +34,10 @@
#include "libbb.h"
/* take from linux/sockios.h */
#define SIOCSIFNAME 0x8923 /* set interface name */
static int do_link;
static int on_off(char *msg)

View File

@ -25,10 +25,13 @@
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <netinet/in.h>
#define sysinfo kernel_sysinfo
#include <linux/if_arp.h>
#undef sysinfo
#include <net/if.h>
#include <net/if_arp.h>
#include <asm/types.h>
#define __constant_htons htons
#include <linux/if_tunnel.h>
#include "rt_names.h"

View File

@ -11,11 +11,7 @@
#include <arpa/inet.h>
#include <string.h>
#define sysinfo kernel_sysinfo
#include <linux/if_arp.h>
#undef sysinfo
#include <net/if_arp.h>
#include "utils.h"
#include "libbb.h"