From: Matthias Klose Date: Thu, 22 Jan 2015 22:47:31 +0000 (+0000) Subject: gets-chk.c: Declare prototype for gets in C11 mode. X-Git-Tag: releases/gcc-5.1.0~1446 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85a1e6370bdfc78bfb92774b765dc28542d50d4d;p=thirdparty%2Fgcc.git gets-chk.c: Declare prototype for gets in C11 mode. 2015-01-22 Matthias Klose * gets-chk.c: Declare prototype for gets in C11 mode. From-SVN: r220018 --- diff --git a/libssp/ChangeLog b/libssp/ChangeLog index e7c3ce2467f2..d1580a37e986 100644 --- a/libssp/ChangeLog +++ b/libssp/ChangeLog @@ -1,3 +1,7 @@ +2015-01-22 Matthias Klose + + * gets-chk.c: Declare prototype for gets in C11 mode. + 2014-11-21 H.J. Lu PR bootstrap/63784 diff --git a/libssp/gets-chk.c b/libssp/gets-chk.c index 053c44626470..92768e4da1c9 100644 --- a/libssp/gets-chk.c +++ b/libssp/gets-chk.c @@ -51,6 +51,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see # include #endif +#if !(!defined __USE_ISOC11 \ + || (defined __cplusplus && __cplusplus <= 201103L)) +extern char *gets (char *); +#endif + extern void __chk_fail (void) __attribute__((__noreturn__)); char *