diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-02-27 15:26:49 +0000 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-02-28 12:48:20 +0100 |
commit | bcb26ed634b82b9ab76255d36e558cfe6a2f0ed0 (patch) | |
tree | f6bf68e97dac55a27e805c782eb2704fadfe7598 /recipes-devtools/python/rpio | |
parent | 9295c7fd71c4032fc71a2516d70f4f3e50b1cad0 (diff) | |
download | meta-raspberrypi-bcb26ed634b82b9ab76255d36e558cfe6a2f0ed0.tar.gz |
rpio: Include sys/types.h for caddr_t
Fixes build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/python/rpio')
-rw-r--r-- | recipes-devtools/python/rpio/0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch | 30 |
1 files changed, 30 insertions, 0 deletions
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 @@ | |||
1 | From c86bfacc98d58244f532626954ed00d84ecfa82d Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 30 Jan 2016 17:12:37 -0800 | ||
4 | Subject: [PATCH] include sys/types.h explicitly for getting caddr_t definition | ||
5 | |||
6 | Helps fixing build on musl where sys/types.h is not included indirectly | ||
7 | as happening on glibc | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Submitted | ||
12 | |||
13 | source/c_gpio/c_gpio.c | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/source/c_gpio/c_gpio.c b/source/c_gpio/c_gpio.c | ||
17 | index 25a04ca..70df632 100644 | ||
18 | --- a/source/c_gpio/c_gpio.c | ||
19 | +++ b/source/c_gpio/c_gpio.c | ||
20 | @@ -29,6 +29,7 @@ | ||
21 | #include <stdint.h> | ||
22 | #include <stdlib.h> | ||
23 | #include <fcntl.h> | ||
24 | +#include <sys/types.h> | ||
25 | #include <sys/mman.h> | ||
26 | #include "c_gpio.h" | ||
27 | |||
28 | -- | ||
29 | 2.7.0 | ||
30 | |||