0003-fs-tests-integrity-don-t-include-header-bits-stdio_l.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From 600ab10e3b452cdffc6c82770b0bb2ff5c23ad70 Mon Sep 17 00:00:00 2001
  2. From: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
  3. Date: Fri, 12 Aug 2016 22:59:35 +0530
  4. Subject: [PATCH 1/1] fs-tests: integrity: don't include header
  5. <bits/stdio_lim.h>
  6. With musl C library, we get following build error
  7. integck.c:37:28: fatal error: bits/stdio_lim.h: No such file or directory
  8. #include <bits/stdio_lim.h>
  9. ^
  10. compilation terminated.
  11. make[2]: *** [integck] Error 1
  12. Header <bits/stdio_lim.h> is not available in musl C library. However
  13. <stdio.h> has all definition that <bits/stdio_lim.h> supposed to be
  14. providing. Moreover <bits/stdio_lim.h> shouldn't be included directly
  15. instead we should be using <stdio.h>.
  16. Since we already include <stdio.h> and in case of uClibc or glibc
  17. <bits/stdio_lim.h> gets included internally, we can safely remove it.
  18. This build issue is found by Buildroot autobuilder
  19. http://autobuild.buildroot.net/results/175/1754861457af520480cc34d7d2d0edff2868ff66/
  20. Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
  21. ---
  22. tests/fs-tests/integrity/integck.c | 1 -
  23. 1 file changed, 1 deletion(-)
  24. diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
  25. index 6ef817e..0bb9711 100644
  26. --- a/tests/fs-tests/integrity/integck.c
  27. +++ b/tests/fs-tests/integrity/integck.c
  28. @@ -34,7 +34,6 @@
  29. #ifdef INTEGCK_DEBUG
  30. #include <execinfo.h>
  31. #endif
  32. -#include <bits/stdio_lim.h>
  33. #include <sys/mman.h>
  34. #include <sys/vfs.h>
  35. #include <sys/mount.h>
  36. --
  37. 2.6.2