Files
libgtop/debian/patches/01_kernel26-headers.dpatch
2004-03-27 12:24:05 +00:00

41 lines
1.2 KiB
Plaintext

#!/bin/sh -e
## 01_kernel26-headers.dpatch by Sebastien Bacher <seb128@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
if [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
case "$1" in
-patch) patch $patch_opts -p1 < $0;;
-unpatch) patch $patch_opts -p1 -R < $0;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1;;
esac
exit 0
@DPATCH@
diff -urNad /tmp/libgtop2-2.0.8/sysdeps/linux/ppp.c libgtop2-2.0.8/sysdeps/linux/ppp.c
--- /tmp/libgtop2-2.0.8/sysdeps/linux/ppp.c 2003-10-19 18:55:39.000000000 +0200
+++ libgtop2-2.0.8/sysdeps/linux/ppp.c 2003-12-20 19:54:33.000000000 +0100
@@ -26,7 +26,10 @@
#include <glibtop/xmalloc.h>
#include <glibtop/ppp.h>
-#include <linux/isdn.h>
+/* #include <linux/isdn.h> doesn't work for kernel 2.5+ */
+#include <asm/ioctl.h>
+#define IIOCGETCPS _IO('I',21)
+#define ISDN_MAX_CHANNELS 64
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <fcntl.h>