summaryrefslogtreecommitdiff
path: root/libc/stdio-common/tst-gets.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio-common/tst-gets.c')
-rw-r--r--libc/stdio-common/tst-gets.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/stdio-common/tst-gets.c b/libc/stdio-common/tst-gets.c
index 87786f5b7..463f345e0 100644
--- a/libc/stdio-common/tst-gets.c
+++ b/libc/stdio-common/tst-gets.c
@@ -1,5 +1,5 @@
/* Tests for gets.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
@@ -21,6 +21,11 @@
#include <stdio.h>
#include <string.h>
+/* 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);
+
+
int
main (void)
{