From 16578fa7b34a92c40f6c657ddadc33a7384b6537 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 27 Dec 2011 09:53:32 -0500 Subject: Better gets prototype and fallout from removal --- stdio-common/tst-gets.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'stdio-common/tst-gets.c') diff --git a/stdio-common/tst-gets.c b/stdio-common/tst-gets.c index 87786f5b71..463f345e0e 100644 --- a/stdio-common/tst-gets.c +++ b/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 , 2001. @@ -21,6 +21,11 @@ #include #include +/* The 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) { -- cgit v1.2.1