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 +#include +#include #ifdef HAVE_LIBGEN_H # include #endif @@ -85,6 +87,8 @@ AC_DEFUN([COMPAT_FUNC_DIRNAME], [ [compat_cv_func_dirname_works], [AC_TRY_RUN([ #include +#include +#include #ifdef HAVE_LIBGEN_H # include #endif @@ -208,6 +212,7 @@ AC_DEFUN([COMPAT_FUNC_MAKEDEV], [ [compat_cv_func_makedev_three_args], [AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ +#include #include #ifdef MAJOR_IN_MKDEV # include @@ -248,6 +253,8 @@ AC_DEFUN([COMPAT_FUNC_SNPRINTF], [ [compat_cv_func_snprintf_works], [AC_TRY_RUN([ #include +#include +#include typedef struct { int length;