diff options
author | Baruch Siach <baruch@tkos.co.il> | 2017-01-14 22:17:27 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2017-01-16 13:16:49 +0100 |
commit | 99c82eda9538f320ff83dcb702215bebe28ed131 (patch) | |
tree | 27379ca3052e20280e002bf370d3922fa9a0cc3d | |
parent | 0852552c69c6fa320f38d9c3c77a6f7f6c099c6a (diff) |
tslib: fix missing headers
Add a patch adding missing headers.
Fixes:
http://autobuild.buildroot.net/results/cb8/cb81abe996b0fb0070ddcd01c0d695bcc0570548/
http://autobuild.buildroot.net/results/88a/88add491e10f2f7edeb15e0def8843f1321ac7af/
http://autobuild.buildroot.net/results/9db/9db1d64fd08c8763a1648e78d7b9155777de6cae/
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | package/tslib/0001-tests-ts_calibrate-add-missing-headers.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/package/tslib/0001-tests-ts_calibrate-add-missing-headers.patch b/package/tslib/0001-tests-ts_calibrate-add-missing-headers.patch new file mode 100644 index 000000000..97cd4beac --- /dev/null +++ b/package/tslib/0001-tests-ts_calibrate-add-missing-headers.patch @@ -0,0 +1,35 @@ +From 54b66bfe405d8b70c703684e60bedbad5c7d4213 Mon Sep 17 00:00:00 2001 +From: Baruch Siach <baruch@tkos.co.il> +Date: Sat, 14 Jan 2017 21:35:53 +0200 +Subject: [PATCH] tests/ts_calibrate: add missing headers + +The open(2) system call requires sys/types.h and sys/stat.h. Fix the following +build failure under uClibc-ng: + +ts_calibrate.c: In function ‘main’: +ts_calibrate.c:248:19: error: ‘S_IRUSR’ undeclared (first use in this function) + S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + ^ + +Signed-off-by: Baruch Siach <baruch@tkos.co.il> +--- +Upstream status: https://github.com/kergoth/tslib/pull/59 + tests/ts_calibrate.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/ts_calibrate.c b/tests/ts_calibrate.c +index c6652e479d4b..9a98d1f86205 100644 +--- a/tests/ts_calibrate.c ++++ b/tests/ts_calibrate.c +@@ -17,6 +17,8 @@ + #include <string.h> + #include <unistd.h> + #include <sys/time.h> ++#include <sys/types.h> ++#include <sys/stat.h> + + #ifdef __ANDROID__ + #include <fcntl.h> +-- +2.11.0 + |