summaryrefslogtreecommitdiff
path: root/pppstats
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>1998-03-31 23:48:03 +0000
committerPaul Mackerras <paulus@samba.org>1998-03-31 23:48:03 +0000
commita6bdb0dc29e5779e2d35bae19739d3ce93f72335 (patch)
tree73f014a22e6b456c03556e399854e55fa800c9c2 /pppstats
parentd8d1c699d9119493920fb252d047bd6560cf1dfb (diff)
Fix it so it compiles with glibc 2 under linux
Diffstat (limited to 'pppstats')
-rw-r--r--pppstats/pppstats.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/pppstats/pppstats.c b/pppstats/pppstats.c
index b98b6ec..36e1ed6 100644
--- a/pppstats/pppstats.c
+++ b/pppstats/pppstats.c
@@ -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_ */