From bcb26ed634b82b9ab76255d36e558cfe6a2f0ed0 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 27 Feb 2016 15:26:49 +0000 Subject: rpio: Include sys/types.h for caddr_t Fixes build with musl Signed-off-by: Khem Raj --- ...-types.h-explicitly-for-getting-caddr_t-d.patch | 30 ++++++++++++++++++++++ recipes-devtools/python/rpio_0.10.0.bb | 6 ++--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 recipes-devtools/python/rpio/0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch (limited to 'recipes-devtools') diff --git a/recipes-devtools/python/rpio/0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch b/recipes-devtools/python/rpio/0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch new file mode 100644 index 0000000..bed9749 --- /dev/null +++ b/recipes-devtools/python/rpio/0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch @@ -0,0 +1,30 @@ +From c86bfacc98d58244f532626954ed00d84ecfa82d Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 30 Jan 2016 17:12:37 -0800 +Subject: [PATCH] include sys/types.h explicitly for getting caddr_t definition + +Helps fixing build on musl where sys/types.h is not included indirectly +as happening on glibc + +Signed-off-by: Khem Raj +--- +Upstream-Status: Submitted + + source/c_gpio/c_gpio.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/source/c_gpio/c_gpio.c b/source/c_gpio/c_gpio.c +index 25a04ca..70df632 100644 +--- a/source/c_gpio/c_gpio.c ++++ b/source/c_gpio/c_gpio.c +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + #include + #include "c_gpio.h" + +-- +2.7.0 + diff --git a/recipes-devtools/python/rpio_0.10.0.bb b/recipes-devtools/python/rpio_0.10.0.bb index 1cc1661..69ecb6f 100644 --- a/recipes-devtools/python/rpio_0.10.0.bb +++ b/recipes-devtools/python/rpio_0.10.0.bb @@ -7,9 +7,9 @@ LIC_FILES_CHKSUM = "file://README.rst;beginline=41;endline=53;md5=d5d95d7486a4d9 SRCNAME = "RPIO" -SRC_URI = "\ - http://pypi.python.org/packages/source/R/RPIO/${SRCNAME}-${PV}.tar.gz \ - " +SRC_URI = "http://pypi.python.org/packages/source/R/RPIO/${SRCNAME}-${PV}.tar.gz \ + file://0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch \ + " S = "${WORKDIR}/${SRCNAME}-${PV}" inherit setuptools -- cgit v1.2.3-54-g00ecf