iptables: bump to version 1.6.1
[buildroot-gz.git] / package / tslib / 0001-tests-ts_calibrate-add-missing-headers.patch
blob97cd4beacabaa535b35da952cce5a53e3436ed8d
1 From 54b66bfe405d8b70c703684e60bedbad5c7d4213 Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Sat, 14 Jan 2017 21:35:53 +0200
4 Subject: [PATCH] tests/ts_calibrate: add missing headers
6 The open(2) system call requires sys/types.h and sys/stat.h. Fix the following
7 build failure under uClibc-ng:
9 ts_calibrate.c: In function ‘main’:
10 ts_calibrate.c:248:19: error: ‘S_IRUSR’ undeclared (first use in this function)
11 S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
14 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
15 ---
16 Upstream status: https://github.com/kergoth/tslib/pull/59
17 tests/ts_calibrate.c | 2 ++
18 1 file changed, 2 insertions(+)
20 diff --git a/tests/ts_calibrate.c b/tests/ts_calibrate.c
21 index c6652e479d4b..9a98d1f86205 100644
22 --- a/tests/ts_calibrate.c
23 +++ b/tests/ts_calibrate.c
24 @@ -17,6 +17,8 @@
25 #include <string.h>
26 #include <unistd.h>
27 #include <sys/time.h>
28 +#include <sys/types.h>
29 +#include <sys/stat.h>
31 #ifdef __ANDROID__
32 #include <fcntl.h>
33 --
34 2.11.0