From 9ea55a3f4d41c8cebc3ecddb6f1609e48f28dfa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20K=C3=A5re=20Hellan?= Date: Sun, 7 Dec 2003 00:10:38 +0000 Subject: [PATCH] Copy needed defines from linux/isdn.h instead of including it, unbreaking build with linux 2.6 kernel headers. --- sysdeps/linux/ChangeLog | 5 +++++ sysdeps/linux/ppp.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog index ae221dd3..7eec7de7 100644 --- a/sysdeps/linux/ChangeLog +++ b/sysdeps/linux/ChangeLog @@ -1,3 +1,8 @@ +2003-12-07 Jon K Hellan + + * ppp.c: Copy needed defines from linux/isdn.h instead of + including it, unbreaking build with linux 2.6 kernel headers. + 2003-10-21 Bastien Nocera * Makefile.am: install only one library, libgtop-2.0 diff --git a/sysdeps/linux/ppp.c b/sysdeps/linux/ppp.c index 483d1239..49b08222 100644 --- a/sysdeps/linux/ppp.c +++ b/sysdeps/linux/ppp.c @@ -25,7 +25,6 @@ #include #include -#include #include #include #include @@ -34,6 +33,13 @@ #include +#ifndef ISDN_MAX_CHANNELS +#define ISDN_MAX_CHANNELS 64 +#endif +#ifndef IIOCGETCPS +#define IIOCGETCPS _IO('I',21) +#endif + static const unsigned long _glibtop_sysdeps_ppp = (1L << GLIBTOP_PPP_STATE) + (1L << GLIBTOP_PPP_BYTES_IN) + (1L << GLIBTOP_PPP_BYTES_OUT);