diff options
Diffstat (limited to 'gcc48-Wimplicit-decls.patch')
-rw-r--r-- | gcc48-Wimplicit-decls.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gcc48-Wimplicit-decls.patch b/gcc48-Wimplicit-decls.patch new file mode 100644 index 0000000..f21c360 --- /dev/null +++ b/gcc48-Wimplicit-decls.patch @@ -0,0 +1,41 @@ +--- 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> |