alpine/alpine-configure-c99.patch

29 lines
810 B
Diff

Avoid implicit int in qsort_t configure check, which can cause
the check to always fail for stricter C99 compilers.
diff --git a/configure b/configure
index 2c417775d04165f3..956e56e223765ca5 100755
--- a/configure
+++ b/configure
@@ -22034,7 +22034,7 @@ else
#endif
extern void *base;
-extern sortf(const void *, const void *);
+extern int sortf(const void *, const void *);
int sortf(a, b)
const void *a;
const void *b; { return 0; }
diff --git a/configure.ac b/configure.ac
index 4fa94f16078daf61..9aa815cb9d08dddd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1964,7 +1964,7 @@ ac_cv_func_qsort_argtype,
#endif
extern void *base;
-extern sortf(const void *, const void *);
+extern int sortf(const void *, const void *);
int sortf(a, b)
const void *a;
const void *b; { return 0; }