83 lines
2.5 KiB
Diff
83 lines
2.5 KiB
Diff
Add missing include files to avoid implicit function declarations.
|
|
|
|
diff --git a/configure b/configure
|
|
index 3dd46a982bc30af1..0fd5bd685c32f3cd 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -22292,6 +22292,7 @@ else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdarg.h>
|
|
+ #include <stdlib.h>
|
|
void f (int i, ...) {
|
|
va_list args1, args2;
|
|
va_start (args1, i);
|
|
@@ -22325,6 +22326,7 @@ else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdarg.h>
|
|
+ #include <stdlib.h>
|
|
void f (int i, ...) {
|
|
va_list args1, args2;
|
|
va_start (args1, i);
|
|
@@ -22377,6 +22379,7 @@ else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
#include <stdarg.h>
|
|
+ #include <stdlib.h>
|
|
void f (int i, ...) {
|
|
va_list args1, args2;
|
|
va_start (args1, i);
|
|
@@ -48608,6 +48611,9 @@ else
|
|
#if HAVE_LANGINFO_CODESET
|
|
# include <langinfo.h>
|
|
#endif
|
|
+#if HAVE_WCTYPE_H
|
|
+# include <wctype.h>
|
|
+#endif
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
struct tm t;
|
|
diff --git a/configure.ac b/configure.ac
|
|
index eb506e7d2af0afee..e268386180b5e524 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -344,6 +344,7 @@ dnl all results in config.log for bug reports.
|
|
|
|
AC_CACHE_CHECK([for an implementation of va_copy()],prelude_cv_va_copy,[
|
|
AC_LINK_IFELSE([AC_LANG_SOURCE([#include <stdarg.h>
|
|
+ #include <stdlib.h>
|
|
void f (int i, ...) {
|
|
va_list args1, args2;
|
|
va_start (args1, i);
|
|
@@ -361,6 +362,7 @@ AC_CACHE_CHECK([for an implementation of va_copy()],prelude_cv_va_copy,[
|
|
])
|
|
AC_CACHE_CHECK([for an implementation of __va_copy()],prelude_cv___va_copy,[
|
|
AC_LINK_IFELSE([AC_LANG_SOURCE([#include <stdarg.h>
|
|
+ #include <stdlib.h>
|
|
void f (int i, ...) {
|
|
va_list args1, args2;
|
|
va_start (args1, i);
|
|
@@ -390,6 +392,7 @@ fi
|
|
|
|
AC_CACHE_CHECK([whether va_lists can be copied by value],prelude_cv_va_val_copy,[
|
|
AC_TRY_RUN([#include <stdarg.h>
|
|
+ #include <stdlib.h>
|
|
void f (int i, ...) {
|
|
va_list args1, args2;
|
|
va_start (args1, i);
|
|
diff --git a/libmissing/m4/locale-tr.m4 b/libmissing/m4/locale-tr.m4
|
|
index 2f2cf47892d505a5..c2683e53b8574f6d 100644
|
|
--- a/libmissing/m4/locale-tr.m4
|
|
+++ b/libmissing/m4/locale-tr.m4
|
|
@@ -19,6 +19,9 @@ changequote(,)dnl
|
|
#if HAVE_LANGINFO_CODESET
|
|
# include <langinfo.h>
|
|
#endif
|
|
+#if HAVE_WCTYPE_H
|
|
+# include <wctype.h>
|
|
+#endif
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
struct tm t;
|