From 28926a1be178dd3b5811219e32b0d6b937bf21cf Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 7 Jan 2012 10:37:50 -0500 Subject: Add explicit declaration of gets in C++ code --- elf/tst-unique3.cc | 2 ++ elf/tst-unique3lib.cc | 2 ++ elf/tst-unique3lib2.cc | 2 ++ elf/tst-unique4.cc | 2 ++ 4 files changed, 8 insertions(+) (limited to 'elf') diff --git a/elf/tst-unique3.cc b/elf/tst-unique3.cc index b2c95939a5..ec1e814b18 100644 --- a/elf/tst-unique3.cc +++ b/elf/tst-unique3.cc @@ -1,4 +1,6 @@ #include "tst-unique3.h" +extern char *gets (char *); + #include #include "../dlfcn/dlfcn.h" diff --git a/elf/tst-unique3lib.cc b/elf/tst-unique3lib.cc index fa8e85a36c..5429dc57c0 100644 --- a/elf/tst-unique3lib.cc +++ b/elf/tst-unique3lib.cc @@ -1,3 +1,5 @@ +extern char *gets (char *); + #include #include "tst-unique3.h" template int S::i = 1; diff --git a/elf/tst-unique3lib2.cc b/elf/tst-unique3lib2.cc index 17d817e12e..76dadcaae7 100644 --- a/elf/tst-unique3lib2.cc +++ b/elf/tst-unique3lib2.cc @@ -1,3 +1,5 @@ +extern char *gets (char *); + #include #include "tst-unique3.h" diff --git a/elf/tst-unique4.cc b/elf/tst-unique4.cc index 9eaa909986..e38ae83748 100644 --- a/elf/tst-unique4.cc +++ b/elf/tst-unique4.cc @@ -1,5 +1,7 @@ // BZ 12511 #include "tst-unique4.h" +extern char *gets (char *); + #include static int a[24] = -- cgit v1.2.3