|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../slmodem/define-devfs_fs_kernel.patch # Copyright (C) 2006 The OpenSDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- SDE-COPYRIGHT-NOTE-END ---
Linux 2.6.18 no longer has devfs_fs_kernel.h cheers
Miguel A. Bolaños
And UTS_RELEASE is defined at linux/utsrelease.h - mnemoc
--- slmodem-2.9.11-20051101/drivers/amrmo_init.c.orig 2006-10-05 10:02:05.000000000 -0600
+++ slmodem-2.9.11-20051101/drivers/amrmo_init.c 2006-10-05 10:02:50.000000000 -0600
@@ -53,7 +53,10 @@
#include <linux/poll.h> #include <linux/fs.h> #include <asm/uaccess.h> +
+#ifdef CONFIG_DEVFS_FS
#include <linux/devfs_fs_kernel.h> +#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) #define OLD_KERNEL 1 --- slmodem-2.9.11-20051101/drivers/st7554.c.orig 2006-10-05 10:41:32.000000000 -0600
+++ slmodem-2.9.11-20051101/drivers/st7554.c 2006-10-05 10:41:52.000000000 -0600
@@ -55,7 +55,10 @@
#include <linux/poll.h> #include <linux/usb.h> #include <linux/device.h> +
+#ifdef CONFIG_DEVFS_FS
#include <linux/devfs_fs_kernel.h> +#endif
#include <modem_defs.h> --- ./drivers/kernel-ver.c.orig 2006-10-06 17:35:22.000000000 -0400
+++ ./drivers/kernel-ver.c 2006-10-06 17:35:53.000000000 -0400
@@ -5,6 +5,9 @@
#include <stdio.h> #include <linux/version.h> +#ifndef UTS_RELEASE
+#include <linux/utsrelease.h>
+#endif
int main() {
|