diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-02-18 18:17:05 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-02-18 18:17:05 +0530 |
commit | ffaa74cf68a370e232279a9a9b0a02ade287cc99 (patch) | |
tree | b5e0d38ef27cac59fc62aaa66b40582c89fd060e /nptl | |
parent | be179c8a36fc171acff0634ac50ad31269ad4742 (diff) | |
download | glibc-ffaa74cf68a370e232279a9a9b0a02ade287cc99.tar glibc-ffaa74cf68a370e232279a9a9b0a02ade287cc99.tar.gz glibc-ffaa74cf68a370e232279a9a9b0a02ade287cc99.tar.bz2 glibc-ffaa74cf68a370e232279a9a9b0a02ade287cc99.zip |
Fix build warnings in some test cases
Include stdlib.h to get declaration of exit(3)
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/sysdeps/pthread/tst-timer.c | 1 | ||||
-rw-r--r-- | nptl/tst-barrier4.c | 1 | ||||
-rw-r--r-- | nptl/tst-robust7.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/nptl/sysdeps/pthread/tst-timer.c b/nptl/sysdeps/pthread/tst-timer.c index f46addd791..fa1b6e72a3 100644 --- a/nptl/sysdeps/pthread/tst-timer.c +++ b/nptl/sysdeps/pthread/tst-timer.c @@ -22,6 +22,7 @@ #include <stdio.h> #include <time.h> #include <unistd.h> +#include <stdlib.h> static void diff --git a/nptl/tst-barrier4.c b/nptl/tst-barrier4.c index 8b5b153219..2836fb341b 100644 --- a/nptl/tst-barrier4.c +++ b/nptl/tst-barrier4.c @@ -20,6 +20,7 @@ #include <errno.h> #include <pthread.h> #include <stdio.h> +#include <stdlib.h> static pthread_barrier_t b1; diff --git a/nptl/tst-robust7.c b/nptl/tst-robust7.c index e64a4fc86d..ed1857c4ec 100644 --- a/nptl/tst-robust7.c +++ b/nptl/tst-robust7.c @@ -20,6 +20,7 @@ #include <pthread.h> #include <stdbool.h> #include <stdio.h> +#include <stdlib.h> static pthread_barrier_t b; |