diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2014-06-10 11:45:00 +0200 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2014-06-10 11:45:00 +0200 |
commit | 35fa894ae37dc5efdaf05db965e65a0621f5beee (patch) | |
tree | 47693e80839cdf20848a33e1f839ec66894b68fc /gcc/config.in | |
parent | 1685ecf3bf96cba4840ea4ef7b0f87b4f92b4898 (diff) | |
download | gcc-35fa894ae37dc5efdaf05db965e65a0621f5beee.zip gcc-35fa894ae37dc5efdaf05db965e65a0621f5beee.tar.gz gcc-35fa894ae37dc5efdaf05db965e65a0621f5beee.tar.bz2 |
[PR lto/61334] Declare prototype for strnlen, if needed.
include/
* libiberty.h [defined (HAVE_DECL_STRNLEN) &&
!HAVE_DECL_STRNLEN] (strnlen): New prototype.
gcc/
* configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen
prototype.
* config.in: Regenerate.
* configure: Likewise.
From-SVN: r211401
Diffstat (limited to 'gcc/config.in')
-rw-r--r-- | gcc/config.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config.in b/gcc/config.in index fb7bf95..0897bd4 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -888,6 +888,13 @@ #endif +/* Define to 1 if we found a declaration for 'strnlen', otherwise define to 0. + */ +#ifndef USED_FOR_TARGET +#undef HAVE_DECL_STRNLEN +#endif + + /* Define to 1 if we found a declaration for 'strsignal', otherwise define to 0. */ #ifndef USED_FOR_TARGET |