From 769e2108a0f5fc49eff9f3addbaf5f0646bcb253 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 7 Sep 2011 19:38:22 +0200 Subject: Tiny build and GCC warning fixes. * pthread/cthreads-compat.c: #include for NULL. * pthread/pt-exit.c (pthread_exit): Remove stray need_dealloc variable. * sysdeps/generic/pt-attr-getschedparam.c: #include for memcpy. * sysdeps/mach/hurd/ia32/pt-setup.c (stack_setup): Apply some more typecasting. * tests/test-1.c: #include . * tests/test-6.c: Likewise. * tests/test-7.c: Likewise. * tests/test-16.c (handler): Take parameters for sa_handler, not sa_sigaction. --- tests/test-1.c | 1 + tests/test-16.c | 2 +- tests/test-6.c | 1 + tests/test-7.c | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test-1.c b/tests/test-1.c index 318fd6e..6ec1afb 100644 --- a/tests/test-1.c +++ b/tests/test-1.c @@ -1,6 +1,7 @@ #define _GNU_SOURCE #include +#include #include #include #include diff --git a/tests/test-16.c b/tests/test-16.c index b6a52d0..3660f5f 100644 --- a/tests/test-16.c +++ b/tests/test-16.c @@ -33,7 +33,7 @@ test (void *arg) } static void -handler (int sig, siginfo_t *info, void *context) +handler (int sig) { assert (pthread_equal (pthread_self (), testthread)); printf ("handler: %d\n", pthread_self ()); diff --git a/tests/test-6.c b/tests/test-6.c index 98aa8ba..edf2919 100644 --- a/tests/test-6.c +++ b/tests/test-6.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #define THREADS 500 diff --git a/tests/test-7.c b/tests/test-7.c index bd97acf..8159be3 100644 --- a/tests/test-7.c +++ b/tests/test-7.c @@ -1,6 +1,7 @@ #define _GNU_SOURCE #include +#include #include #include #include -- cgit v1.2.3