diff options
Diffstat (limited to 'recipes-devtools/python/python3-rtimu/0001-include-asm-ioctl.h-for-ioctl-define.patch')
| -rw-r--r-- | recipes-devtools/python/python3-rtimu/0001-include-asm-ioctl.h-for-ioctl-define.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-devtools/python/python3-rtimu/0001-include-asm-ioctl.h-for-ioctl-define.patch b/recipes-devtools/python/python3-rtimu/0001-include-asm-ioctl.h-for-ioctl-define.patch new file mode 100644 index 0000000..4a93a1c --- /dev/null +++ b/recipes-devtools/python/python3-rtimu/0001-include-asm-ioctl.h-for-ioctl-define.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From c3aa4af56652b403e304ea5f321acfe289e42922 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 30 Jan 2016 16:07:14 -0800 | ||
| 4 | Subject: [PATCH] include asm/ioctl.h for ioctl() define | ||
| 5 | |||
| 6 | also fixes errors e.g. | ||
| 7 | |||
| 8 | ../../RTIMULib/RTIMUHal.cpp:208:29: error: '_IOC_SIZEBITS' was not | ||
| 9 | declared in this scope | ||
| 10 | return ioctl(m_SPI, SPI_IOC_MESSAGE(1), &wrIOC); | ||
| 11 | |||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | Upstream-Status: Submitted | ||
| 15 | |||
| 16 | RTIMULib/RTIMUHal.cpp | 1 + | ||
| 17 | 1 file changed, 1 insertion(+) | ||
| 18 | |||
| 19 | diff --git a/RTIMULib/RTIMUHal.cpp b/RTIMULib/RTIMUHal.cpp | ||
| 20 | index f9c3d15..d968326 100644 | ||
| 21 | --- a/RTIMULib/RTIMUHal.cpp | ||
| 22 | +++ b/RTIMULib/RTIMUHal.cpp | ||
| 23 | @@ -29,6 +29,7 @@ | ||
| 24 | #if !defined(WIN32) && !defined(__APPLE__) | ||
| 25 | |||
| 26 | #include <linux/spi/spidev.h> | ||
| 27 | +#include <asm/ioctl.h> | ||
| 28 | |||
| 29 | RTIMUHal::RTIMUHal() | ||
| 30 | { | ||
| 31 | -- | ||
| 32 | 2.7.0 | ||
| 33 | |||
