summaryrefslogtreecommitdiffstats
path: root/0016-fix-some-implicit-declaration-warnings.patch
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-02-21 18:56:00 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2016-02-21 18:56:00 -0600
commit2426323bbdcaf8d5904f1f243bb2a5066dd21c8a (patch)
tree21ab325f116ab50e84ac20a77bbaf569eb56a469 /0016-fix-some-implicit-declaration-warnings.patch
parentd9caede9a622bfa41c984c4685a7b185421c96d7 (diff)
downloadcygwin-gcc-2426323bbdcaf8d5904f1f243bb2a5066dd21c8a.tar.gz
cygwin-gcc-2426323bbdcaf8d5904f1f243bb2a5066dd21c8a.tar.xz
cygwin-gcc-2426323bbdcaf8d5904f1f243bb2a5066dd21c8a.zip
cygwin-gcc 5.3.0
Diffstat (limited to '0016-fix-some-implicit-declaration-warnings.patch')
-rw-r--r--0016-fix-some-implicit-declaration-warnings.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/0016-fix-some-implicit-declaration-warnings.patch b/0016-fix-some-implicit-declaration-warnings.patch
new file mode 100644
index 0000000..0c0b4a2
--- /dev/null
+++ b/0016-fix-some-implicit-declaration-warnings.patch
@@ -0,0 +1,58 @@
+From 9acb3806f55fe198543405988601fd90945f00ac Mon Sep 17 00:00:00 2001
+From: Jonathan Yong <10walls@gmail.com>
+Date: Sat, 28 Jun 2014 10:08:25 +0800
+Subject: [PATCH 16/21] fix some implicit declaration warnings
+
+---
+ libiberty/aclocal.m4 | 6 +++++-
+ libiberty/configure | 3 +++
+ 2 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/libiberty/aclocal.m4 b/libiberty/aclocal.m4
+index bf8a907..6b5e66c 100644
+--- a/libiberty/aclocal.m4
++++ b/libiberty/aclocal.m4
+@@ -15,6 +15,8 @@ AC_CACHE_CHECK([for working strncmp], ac_cv_func_strncmp_works,
+ /* 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;
+diff --git a/libiberty/configure b/libiberty/configure
+index da2df4e..f8bb482 100755
+--- a/libiberty/configure
++++ b/libiberty/configure
+@@ -6390,6 +6390,7 @@ else
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
++#include <stdlib.h>
+ find_stack_direction ()
+ {
+ static char *addr = 0;
+@@ -7200,6 +7201,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>
+--
+2.4.5
+