summaryrefslogtreecommitdiff
path: root/libssp/gets-chk.c
diff options
context:
space:
mode:
authordoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-22 22:47:31 +0000
committerdoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-22 22:47:31 +0000
commitf393689dbb841bd43667185e01763ac8d295f9ef (patch)
treef88766dd44c878e684e520ea519fdb5dfc7e8e84 /libssp/gets-chk.c
parent1b0e4e57835e20d38a33fede08d119c954ff3968 (diff)
downloadgcc-f393689dbb841bd43667185e01763ac8d295f9ef.tar.gz
2015-01-22 Matthias Klose <doko@ubuntu.com>
* gets-chk.c: Declare prototype for gets in C11 mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220018 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libssp/gets-chk.c')
-rw-r--r--libssp/gets-chk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libssp/gets-chk.c b/libssp/gets-chk.c
index 053c4462647..92768e4da1c 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 *