gentoo-ebuilds/app-arch/rzip/files/rzip-2.1-configure-clang16.patch
Sam James 01a65258b5
app-arch/rzip: fix configure w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
2022-11-22 23:29:57 +00:00

13 lines
434 B
Diff

See also: https://bugzilla.redhat.com/show_bug.cgi?id=2144458
--- a/configure.in
+++ b/configure.in
@@ -36,7 +36,7 @@ AC_CACHE_CHECK([for large file support],rzip_cv_HAVE_LARGE_FILES,[
AC_TRY_RUN([
#include <stdio.h>
#include <sys/types.h>
-main() { return (sizeof(off_t) == 4); }],
+int main(void) { return (sizeof(off_t) == 4); }],
rzip_cv_HAVE_LARGE_FILES=yes,
rzip_cv_HAVE_LARGE_FILES=no,
rzip_cv_HAVE_LARGE_FILES=cross)])