Fix it so it compiles with glibc 2
authorPaul Mackerras <paulus@samba.org>
Tue, 31 Mar 1998 23:47:40 +0000 (23:47 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 31 Mar 1998 23:47:40 +0000 (23:47 +0000)
pppd/sys-linux.c

index f99282b5d59c431bdc6d2c8c22e45260ac08ca93..ff1733cfe9adcc4846af5826849e18c9e7309232 100644 (file)
 #define MAX_ADDR_LEN 7
 #endif
 
-#include <linux/ppp_defs.h>
-#include <linux/if_ppp.h>
-
 #if __GLIBC__ >= 2
+#include <net/if.h>
 #include <net/if_arp.h>
 #include <net/route.h>
 #include <netinet/if_ether.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
+#include <linux/types.h>
+#include <linux/ppp_defs.h>
+#include <linux/if_ppp.h>
+
 #include "pppd.h"
 #include "fsm.h"
 #include "ipcp.h"