Fix: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration] error: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Werror,-Wimplicit-function-declaration] error: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration] error: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Werror,-Wimplicit-function-declaration] https://github.com/tklauser/libtar/pull/11 --- compat/module.ac.orig 2013-10-09 11:59:44.000000000 -0500 +++ compat/module.ac 2021-04-16 19:28:18.000000000 -0500 @@ -31,6 +31,8 @@ [compat_cv_func_basename_works], [AC_TRY_RUN([ #include +#include +#include #ifdef HAVE_LIBGEN_H # include #endif @@ -85,6 +87,8 @@ [compat_cv_func_dirname_works], [AC_TRY_RUN([ #include +#include +#include #ifdef HAVE_LIBGEN_H # include #endif @@ -157,6 +161,7 @@ [compat_cv_func_glob_works], [AC_TRY_RUN([ #include +#include #ifdef HAVE_GLOB_H # include #endif @@ -208,6 +213,7 @@ [compat_cv_func_makedev_three_args], [AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ +#include #include #ifdef MAJOR_IN_MKDEV # include @@ -248,6 +254,8 @@ [compat_cv_func_snprintf_works], [AC_TRY_RUN([ #include +#include +#include typedef struct { int length;