diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-12-27 09:53:32 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2012-01-01 07:17:22 -0500 |
commit | 16578fa7b34a92c40f6c657ddadc33a7384b6537 (patch) | |
tree | 84e0db1fb5f00a03725f2a12f292bb505586241c /stdio-common | |
parent | 8b43a4cc567222ed61f157eccc0a8e1411082994 (diff) | |
download | glibc-16578fa7b34a92c40f6c657ddadc33a7384b6537.zip glibc-16578fa7b34a92c40f6c657ddadc33a7384b6537.tar.gz glibc-16578fa7b34a92c40f6c657ddadc33a7384b6537.tar.bz2 |
Better gets prototype and fallout from removal
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/tst-gets.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/stdio-common/tst-gets.c b/stdio-common/tst-gets.c index 87786f5..463f345 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 <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) { |