Copy needed defines from linux/isdn.h instead of

including it, unbreaking build with linux 2.6 kernel headers.
This commit is contained in:
Jon Kåre Hellan
2003-12-07 00:10:38 +00:00
parent 310a51dd8f
commit 9ea55a3f4d
2 changed files with 12 additions and 1 deletions

View File

@@ -25,7 +25,6 @@
#include <glibtop/error.h>
#include <glibtop/ppp.h>
#include <linux/isdn.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -34,6 +33,13 @@
#include <glib.h>
#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);