]> git.ozlabs.org Git - ppp.git/blobdiff - pppstats/pppstats.c
Fix it so it compiles with glibc 2 under linux
[ppp.git] / pppstats / pppstats.c
index b98b6ec189be2778faa9698c2442541331853d13..36e1ed60dd6c7f42af3003f52496f36cdf786ee2 100644 (file)
@@ -32,7 +32,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: pppstats.c,v 1.21 1998/03/25 03:01:10 paulus Exp $";
+static char rcsid[] = "$Id: pppstats.c,v 1.22 1998/03/31 23:48:03 paulus Exp $";
 #endif
 
 #include <stdio.h>
@@ -55,7 +55,13 @@ static char rcsid[] = "$Id: pppstats.c,v 1.21 1998/03/25 03:01:10 paulus Exp $";
 #include <net/ppp_defs.h>
 #include <net/if_ppp.h>
 #else
+/* Linux */
+#if __GLIBC__ >= 2
+#include <net/if.h>
+#else
 #include <linux/if.h>
+#endif
+#include <linux/types.h>
 #include <linux/ppp_defs.h>
 #include <linux/if_ppp.h>
 #endif /* _linux_ */