diff --git a/libs/dahdi-linux/patches/110-fix-uaccess_h-include.patch b/libs/dahdi-linux/patches/110-fix-uaccess_h-include.patch new file mode 100644 index 0000000..5357fa7 --- /dev/null +++ b/libs/dahdi-linux/patches/110-fix-uaccess_h-include.patch @@ -0,0 +1,77 @@ +--- a/drivers/dahdi/datamods/syncppp.c ++++ b/drivers/dahdi/datamods/syncppp.c +@@ -39,6 +39,7 @@ + + #include + #include ++#include + #include + #include + #include +@@ -56,7 +57,11 @@ + #include + + #include ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) + #include ++#else ++#include ++#endif + + #define MAXALIVECNT 6 /* max. alive packets */ + +--- a/drivers/dahdi/wcb4xxp/base.c ++++ b/drivers/dahdi/wcb4xxp/base.c +@@ -22,6 +22,7 @@ + + #include + ++#include + #include /* printk() */ + #include /* error codes */ + #include +@@ -35,7 +36,11 @@ + #include + #include /* dev_err() */ + #include ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) + #include /* copy_*_user */ ++#else ++#include ++#endif + #include /* work_struct */ + #include /* timer_struct */ + #include +--- a/drivers/dahdi/xpp/mmapdrv.c ++++ b/drivers/dahdi/xpp/mmapdrv.c +@@ -1,3 +1,4 @@ ++#include + #include + #include + #include +@@ -10,7 +11,11 @@ + #include + #include + #include ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) + #include ++#else ++#include ++#endif + #include + #include "mmapbus.h" + #include "xbus-core.h" +--- a/drivers/dahdi/xpp/xpp_usb.c ++++ b/drivers/dahdi/xpp/xpp_usb.c +@@ -27,7 +27,11 @@ + #include + #include /* for udelay */ + #include ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) + #include ++#else ++#include ++#endif + #include + #include + #include