mtd: fix musl build issue
authorRahul Bedarkar <rahul.bedarkar@imgtec.com>
Mon, 15 Aug 2016 06:15:41 +0000 (11:45 +0530)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 17 Aug 2016 06:35:49 +0000 (08:35 +0200)
commit850e74c3639733986ff40b96fbca7d355aee738c
tree57b4f157a0a62709355a6ca77ef3cff9a8f1ffbc
parent9781af1247c56899eaf28795ecaab7462da93066
mtd: fix musl build issue

With musl C library, we get following build error

  integck.c:37:28: fatal error: bits/stdio_lim.h: No such file or directory
   #include <bits/stdio_lim.h>
                              ^
  compilation terminated.
  make[2]: *** [integck] Error 1

Header <bits/stdio_lim.h> is not available in musl C library. However
<stdio.h> has all definition that <bits/stdio_lim.h> supposed to be
providing. Moreover <bits/stdio_lim.h> shouldn't be included directly
instead we should be using <stdio.h>.

Since we already include <stdio.h> and in case of uClibc or glibc
<bits/stdio_lim.h> gets included internally, we can safely remove it.

Fixes:

  http://autobuild.buildroot.net/results/175/1754861457af520480cc34d7d2d0edff2868ff66/

Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/mtd/0003-fs-tests-integrity-don-t-include-header-bits-stdio_l.patch [new file with mode: 0644]