OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../slmodem/define-devfs_fs_kernel.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Linux 2.6.18 no longer has devfs_fs_kernel.h
  17. cheers
  18. Miguel A. Bolaños
  19. And UTS_RELEASE is defined at linux/utsrelease.h - mnemoc
  20. --- slmodem-2.9.11-20051101/drivers/amrmo_init.c.orig 2006-10-05 10:02:05.000000000 -0600
  21. +++ slmodem-2.9.11-20051101/drivers/amrmo_init.c 2006-10-05 10:02:50.000000000 -0600
  22. @@ -53,7 +53,10 @@
  23. #include <linux/poll.h>
  24. #include <linux/fs.h>
  25. #include <asm/uaccess.h>
  26. +
  27. +#ifdef CONFIG_DEVFS_FS
  28. #include <linux/devfs_fs_kernel.h>
  29. +#endif
  30. #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
  31. #define OLD_KERNEL 1
  32. --- slmodem-2.9.11-20051101/drivers/st7554.c.orig 2006-10-05 10:41:32.000000000 -0600
  33. +++ slmodem-2.9.11-20051101/drivers/st7554.c 2006-10-05 10:41:52.000000000 -0600
  34. @@ -55,7 +55,10 @@
  35. #include <linux/poll.h>
  36. #include <linux/usb.h>
  37. #include <linux/device.h>
  38. +
  39. +#ifdef CONFIG_DEVFS_FS
  40. #include <linux/devfs_fs_kernel.h>
  41. +#endif
  42. #include <modem_defs.h>
  43. --- ./drivers/kernel-ver.c.orig 2006-10-06 17:35:22.000000000 -0400
  44. +++ ./drivers/kernel-ver.c 2006-10-06 17:35:53.000000000 -0400
  45. @@ -5,6 +5,9 @@
  46. #include <stdio.h>
  47. #include <linux/version.h>
  48. +#ifndef UTS_RELEASE
  49. +#include <linux/utsrelease.h>
  50. +#endif
  51. int main()
  52. {