about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-12-27 09:57:25 -0500
committerUlrich Drepper <drepper@gmail.com>2012-01-01 07:17:22 -0500
commit8ea79a616e43093f403927e425c197afe39196b7 (patch)
tree337dd9b19b958132ab41912d1edc0255f70b223c
parent16578fa7b34a92c40f6c657ddadc33a7384b6537 (diff)
downloadglibc-8ea79a616e43093f403927e425c197afe39196b7.tar.gz
glibc-8ea79a616e43093f403927e425c197afe39196b7.tar.xz
glibc-8ea79a616e43093f403927e425c197afe39196b7.zip
More fallout from gets removal
-rw-r--r--debug/tst-chk1.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/debug/tst-chk1.c b/debug/tst-chk1.c
index 0ec8ab07d9..7f0186e706 100644
--- a/debug/tst-chk1.c
+++ b/debug/tst-chk1.c
@@ -33,6 +33,12 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 
+__BEGIN_DECLS
+/* The <stdio.h> header does not include the declaration for gets
+   anymore when compiling with _GNU_SOURCE.  Provide a copy here.  */
+extern char *gets (char *__s);
+__END_DECLS
+
 #define obstack_chunk_alloc malloc
 #define obstack_chunk_free free