package/libcap: fix build with gcc 4.8
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 20 Jul 2021 21:01:34 +0000 (23:01 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 20 Jul 2021 21:41:57 +0000 (23:41 +0200)
commit8b28ba976e4032684c0e30984d246fb12a25f238
tree51f29fbc8401578179a0ad62b408606c29b4b151
parentfbd9566220f2812baeff5dbd727bfc30fe4e93ea
package/libcap: fix build with gcc 4.8

Fix the following build failure with gcc 4.8 which is raised since bump
to version 2.51 in commit bef89e381d0d698053a026d6a8cb0ded260bd074:

uns_test.c: In function 'main':
uns_test.c:118:5: error: 'for' loop initial declarations are only allowed in C99 mode
     for (int i=0; i<2; i++) {
     ^

Fixes:
 - http://autobuild.buildroot.org/results/9e67bdd540bb7779a13e27c55114a561c12b289a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libcap/0001-Permit-compilation-with-std-c89.patch [new file with mode: 0644]