0001-tests-ts_calibrate-add-missing-headers.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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
  5. The open(2) system call requires sys/types.h and sys/stat.h. Fix the following
  6. build failure under uClibc-ng:
  7. ts_calibrate.c: In function ‘main’:
  8. ts_calibrate.c:248:19: error: ‘S_IRUSR’ undeclared (first use in this function)
  9. S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
  10. ^
  11. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  12. ---
  13. Upstream status: https://github.com/kergoth/tslib/pull/59
  14. tests/ts_calibrate.c | 2 ++
  15. 1 file changed, 2 insertions(+)
  16. diff --git a/tests/ts_calibrate.c b/tests/ts_calibrate.c
  17. index c6652e479d4b..9a98d1f86205 100644
  18. --- a/tests/ts_calibrate.c
  19. +++ b/tests/ts_calibrate.c
  20. @@ -17,6 +17,8 @@
  21. #include <string.h>
  22. #include <unistd.h>
  23. #include <sys/time.h>
  24. +#include <sys/types.h>
  25. +#include <sys/stat.h>
  26. #ifdef __ANDROID__
  27. #include <fcntl.h>
  28. --
  29. 2.11.0