Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 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 | |