diff --git a/libssp/ChangeLog b/libssp/ChangeLog index e7c3ce2467f2627cc1b174fb1127f0ca8f51ef02..d1580a37e98658c40c0bbe9632299b74a6d37f46 100644 --- a/libssp/ChangeLog +++ b/libssp/ChangeLog @@ -1,3 +1,7 @@ +2015-01-22 Matthias Klose <doko@ubuntu.com> + + * gets-chk.c: Declare prototype for gets in C11 mode. + 2014-11-21 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/63784 diff --git a/libssp/gets-chk.c b/libssp/gets-chk.c index 053c4462647053c854bc9163c8734fe74ee780e8..92768e4da1c99db5b21a4c4c7fd22f1400f1ec92 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 <string.h> #endif +#if !(!defined __USE_ISOC11 \ + || (defined __cplusplus && __cplusplus <= 201103L)) +extern char *gets (char *); +#endif + extern void __chk_fail (void) __attribute__((__noreturn__)); char *