Copy needed defines from linux/isdn.h instead of
including it, unbreaking build with linux 2.6 kernel headers.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user