diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2017-01-19 13:01:49 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-01-23 21:22:35 +1300 |
commit | f3940282c03ad4356e018223f7c4c20076dd61ce (patch) | |
tree | c61470aadb1a688a72bbbf446c9784a2ed99336b /package/libgpiod/0001-include-gpiod.h-include-missing-time.h-include.patch | |
parent | d6706dc430ebb1dade6f90a8d45503c23abec99d (diff) | |
download | buildroot-f3940282c03ad4356e018223f7c4c20076dd61ce.tar.gz buildroot-f3940282c03ad4356e018223f7c4c20076dd61ce.zip |
libgpiod: new package
Add a package containing a C library and a set of command-line tools
for controlling GPIOs from user space using the new character device
interface on linux.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
[Thomas:
- add comment about autoreconf=yes (suggested by Romain Naour)
- add more conventional syntax for the --{enable,disable}-tools usage
(suggested by Romain Naour)
- add patch to fix musl build.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libgpiod/0001-include-gpiod.h-include-missing-time.h-include.patch')
-rw-r--r-- | package/libgpiod/0001-include-gpiod.h-include-missing-time.h-include.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/package/libgpiod/0001-include-gpiod.h-include-missing-time.h-include.patch b/package/libgpiod/0001-include-gpiod.h-include-missing-time.h-include.patch new file mode 100644 index 0000000000..f3744fd8e9 --- /dev/null +++ b/package/libgpiod/0001-include-gpiod.h-include-missing-time.h-include.patch @@ -0,0 +1,36 @@ +From 93fd4a02233d29f78b261d99d9ce6b14869b19c7 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +Date: Mon, 23 Jan 2017 21:17:15 +1300 +Subject: [PATCH] include/gpiod.h: include missing <time.h> include +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +gpiod.h uses "struct timespec", but forgets to include the <time.h> +header which defines "struct timespec". This causes a build error with +the musl C library: + +In file included from core.c:11:0: +../../include/gpiod.h:232:49: warning: ‘struct timespec’ declared inside parameter list + typedef int (*gpiod_event_cb)(int, const struct timespec *, void *); + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +--- + include/gpiod.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/gpiod.h b/include/gpiod.h +index 8c5858e..c1f252d 100644 +--- a/include/gpiod.h ++++ b/include/gpiod.h +@@ -22,6 +22,7 @@ + + #include <stdlib.h> + #include <stdbool.h> ++#include <time.h> + + #ifdef __cplusplus + extern "C" { +-- +2.7.4 + |