diff options
author | Sam James <sam@gentoo.org> | 2023-04-28 06:52:12 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-04-28 07:04:11 +0100 |
commit | b5d27ba41941be450cada145f6a03367ecb0a525 (patch) | |
tree | c7c6651480ca2405e25ae43b07061c7f10fab8f5 /dev-libs/libtar/files | |
parent | x11-misc/obconf: add upstream bug ref to patch (diff) | |
download | gentoo-b5d27ba41941be450cada145f6a03367ecb0a525.tar.gz gentoo-b5d27ba41941be450cada145f6a03367ecb0a525.tar.bz2 gentoo-b5d27ba41941be450cada145f6a03367ecb0a525.zip |
dev-libs/libtar: fix configure w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libtar/files')
-rw-r--r-- | dev-libs/libtar/files/libtar-1.2.20-configure-clang16.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-libs/libtar/files/libtar-1.2.20-configure-clang16.patch b/dev-libs/libtar/files/libtar-1.2.20-configure-clang16.patch new file mode 100644 index 000000000000..c47ae7f3c8f2 --- /dev/null +++ b/dev-libs/libtar/files/libtar-1.2.20-configure-clang16.patch @@ -0,0 +1,43 @@ +https://src.fedoraproject.org/rpms/libtar/raw/175c39e7e572fea263fd2e35175646852a785def/f/libtar-configure-c99.patch + +Add additional #include directives to prevent implicit function +declarations and build failures with future compilers. + +--- a/compat/module.ac ++++ b/compat/module.ac +@@ -31,6 +31,8 @@ AC_DEFUN([COMPAT_FUNC_BASENAME], [ + [compat_cv_func_basename_works], + [AC_TRY_RUN([ + #include <stdio.h> ++#include <stdlib.h> ++#include <string.h> + #ifdef HAVE_LIBGEN_H + # include <libgen.h> + #endif +@@ -85,6 +87,8 @@ AC_DEFUN([COMPAT_FUNC_DIRNAME], [ + [compat_cv_func_dirname_works], + [AC_TRY_RUN([ + #include <stdio.h> ++#include <stdlib.h> ++#include <string.h> + #ifdef HAVE_LIBGEN_H + # include <libgen.h> + #endif +@@ -208,6 +212,7 @@ AC_DEFUN([COMPAT_FUNC_MAKEDEV], [ + [compat_cv_func_makedev_three_args], + [AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([[ ++#include <stdlib.h> + #include <sys/types.h> + #ifdef MAJOR_IN_MKDEV + # include <sys/mkdev.h> +@@ -248,6 +253,8 @@ AC_DEFUN([COMPAT_FUNC_SNPRINTF], [ + [compat_cv_func_snprintf_works], + [AC_TRY_RUN([ + #include <stdio.h> ++#include <stdlib.h> ++#include <string.h> + + typedef struct { + int length; + |