Files
MSYS2-packages/gcc/4.8-Wimplicit-decls.patch
2013-12-23 09:54:35 +04:00

42 lines
1.3 KiB
Diff

--- origsrc/gcc-4.8.2/libiberty/aclocal.m4 2013-11-17 03:48:36.190725600 -0600
+++ src/gcc-4.8.2/libiberty/aclocal.m4 2013-11-16 23:57:59.000000000 -0600
@@ -15,6 +15,8 @@ AC_CACHE_CHECK([for working strncmp], ac
/* Test by Jim Wilson and Kaveh Ghazi.
Check whether strncmp reads past the end of its string parameters. */
#include <sys/types.h>
+#include <string.h>
+#include <stdlib.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
@@ -147,7 +149,9 @@ if test $ac_cv_os_cray = yes; then
fi
AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
-[AC_TRY_RUN([find_stack_direction ()
+[AC_TRY_RUN([
+#include <stdlib.h>
+find_stack_direction ()
{
static char *addr = 0;
auto char dummy;
--- origsrc/gcc-4.8.2/libiberty/configure 2013-11-17 03:48:36.197726000 -0600
+++ src/gcc-4.8.2/libiberty/configure 2013-11-16 23:57:59.000000000 -0600
@@ -6069,6 +6069,7 @@ else
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+#include <stdlib.h>
find_stack_direction ()
{
static char *addr = 0;
@@ -6838,6 +6839,8 @@ else
/* Test by Jim Wilson and Kaveh Ghazi.
Check whether strncmp reads past the end of its string parameters. */
#include <sys/types.h>
+#include <string.h>
+#include <stdlib.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>