From: Siddhesh Poyarekar Date: Mon, 18 Feb 2013 12:47:05 +0000 (+0530) Subject: Fix build warnings in some test cases X-Git-Tag: glibc-2.18~692 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffaa74cf68a370e232279a9a9b0a02ade287cc99;p=thirdparty%2Fglibc.git Fix build warnings in some test cases Include stdlib.h to get declaration of exit(3) --- diff --git a/ChangeLog b/ChangeLog index 0cc0fed2be3..20a7aa1cc53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2013-02-18 Siddhesh Poyarekar + * misc/tst-pselect.c: Include stdlib.h for declaration of exit. + * nptl/sysdeps/pthread/tst-timer.c: Likewise. + * nptl/tst-barrier4.c: Likewise. + * nptl/tst-robust7.c: Likewise. + * elf/Versions (ld): Add _dl_find_dso_for_object. * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object. * elf/dl-open.c (_dl_find_dso_for_object): New function. diff --git a/misc/tst-pselect.c b/misc/tst-pselect.c index 35d51d8ee04..36bc46da6c9 100644 --- a/misc/tst-pselect.c +++ b/misc/tst-pselect.c @@ -4,6 +4,7 @@ #include #include #include +#include static volatile int handler_called; diff --git a/nptl/sysdeps/pthread/tst-timer.c b/nptl/sysdeps/pthread/tst-timer.c index f46addd7919..fa1b6e72a3a 100644 --- a/nptl/sysdeps/pthread/tst-timer.c +++ b/nptl/sysdeps/pthread/tst-timer.c @@ -22,6 +22,7 @@ #include #include #include +#include static void diff --git a/nptl/tst-barrier4.c b/nptl/tst-barrier4.c index 8b5b1532198..2836fb341be 100644 --- a/nptl/tst-barrier4.c +++ b/nptl/tst-barrier4.c @@ -20,6 +20,7 @@ #include #include #include +#include static pthread_barrier_t b1; diff --git a/nptl/tst-robust7.c b/nptl/tst-robust7.c index e64a4fc86db..ed1857c4ecf 100644 --- a/nptl/tst-robust7.c +++ b/nptl/tst-robust7.c @@ -20,6 +20,7 @@ #include #include #include +#include static pthread_barrier_t b;