summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2006-07-24 21:23:39 +0000
committerStefan Schweizer <genstef@gentoo.org>2006-07-24 21:23:39 +0000
commit149875c437cff2cf2fdf593bc888813f2f63c103 (patch)
tree0f8964dbd9954b2448c4fa2eb4f81f044de05ccb /net-dialup
parentversion bump (diff)
downloadgentoo-2-149875c437cff2cf2fdf593bc888813f2f63c103.tar.gz
gentoo-2-149875c437cff2cf2fdf593bc888813f2f63c103.tar.bz2
gentoo-2-149875c437cff2cf2fdf593bc888813f2f63c103.zip
add missing patch
(Portage version: 2.1.1_pre3-r3)
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/misdn/files/nodevfs.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/net-dialup/misdn/files/nodevfs.patch b/net-dialup/misdn/files/nodevfs.patch
new file mode 100644
index 000000000000..f1621a0433a5
--- /dev/null
+++ b/net-dialup/misdn/files/nodevfs.patch
@@ -0,0 +1,43 @@
+Index: mISDN/udevice.c
+===================================================================
+RCS file: /i4ldev/mISDN/drivers/isdn/hardware/mISDN/udevice.c,v
+retrieving revision 1.20
+diff -u -r1.20 udevice.c
+--- mISDN/udevice.c 12 May 2006 13:27:23 -0000 1.20
++++ mISDN/udevice.c 18 Jul 2006 11:00:55 -0000
+@@ -10,7 +10,13 @@
+ #include <linux/vmalloc.h>
+ #include <linux/config.h>
+ #include <linux/timer.h>
++#include <linux/version.h>
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
++#define HAVE_DEVFS 1
+ #include <linux/devfs_fs_kernel.h>
++#else
++#define HAVE_DEVFS 0
++#endif
+ #include "core.h"
+
+ #define MAX_HEADER_LEN 4
+@@ -1983,8 +1989,11 @@
+ if (err) {
+ printk(KERN_ERR "Can't register %s error(%d)\n", MName, err);
+ unregister_chrdev(mISDN_MAJOR, "mISDN");
+- } else
++ } else {
++#if HAVE_DEVFS
+ devfs_mk_cdev(MKDEV(mISDN_MAJOR, 0), S_IFCHR | S_IRUSR | S_IWUSR, "mISDN");
++#endif
++ }
+
+ return(err);
+ }
+@@ -2006,6 +2015,8 @@
+ if ((err = unregister_chrdev(mISDN_MAJOR, "mISDN"))) {
+ printk(KERN_WARNING "mISDN: devices busy on remove\n");
+ }
++#if HAVE_DEVFS
+ devfs_remove("mISDN");
++#endif
+ return(err);
+ }