aports/community/e2fsimage/gcc14.patch

16 lines
525 B
Diff

Fix -Wimplicit-int and -Wimplicit-function-declaration errors on conftest.c
with gcc 14.
--- e2fsimage-0.2.3-origin/configure
+++ e2fsimage-0.2.3/configure
@@ -101,7 +101,8 @@
##### Try to compile them all together and show the versions.
cat >conftest.c <<EOF
#include <e2p/e2p.h>
-main(){ const char *v, *d; ext2fs_get_library_version(&v,&d);
+#include <ext2fs/ext2fs.h>
+int main(){ const char *v, *d; ext2fs_get_library_version(&v,&d);
printf("\nThe version of the e2fs library is: %s, %s\n", v, d);return 0;}
EOF