0001-Add-missing-limits.h-include.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 7d7c5a81b0e2f3321d269b7acc450d1eec7a910b Mon Sep 17 00:00:00 2001
  2. From: Baruch Siach <baruch@tkos.co.il>
  3. Date: Sun, 18 Aug 2019 09:57:23 +0300
  4. Subject: [PATCH] Add missing limits.h include
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes build with musl libc that does not include limits.h indirectly via
  9. other headers.
  10. evtest.c: In function ‘scan_devices’:
  11. evtest.c:886:14: error: ‘PATH_MAX’ undeclared (first use in this function); did you mean INT8_MAX’?
  12. char fname[PATH_MAX];
  13. ^~~~~~~~
  14. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  15. ---
  16. Upstream status: sent to input-tools@lists.freedesktop.org (moderated)
  17. evtest.c | 1 +
  18. 1 file changed, 1 insertion(+)
  19. diff --git a/evtest.c b/evtest.c
  20. index 37d4f8540333..548c203564d3 100644
  21. --- a/evtest.c
  22. +++ b/evtest.c
  23. @@ -56,6 +56,7 @@
  24. #include <getopt.h>
  25. #include <ctype.h>
  26. #include <signal.h>
  27. +#include <limits.h>
  28. #include <sys/time.h>
  29. #include <sys/types.h>
  30. #include <unistd.h>
  31. --
  32. 2.23.0.rc1