Message ID | 20141006115316.GS3503@redhat.com |
---|---|
State | New |
Headers | show |
diff --git gcc/libgomp/testsuite/libgomp.c/affinity-1.c gcc/libgomp/testsuite/libgomp.c/affinity-1.c index a1a2a12..21f344c 100644 --- gcc/libgomp/testsuite/libgomp.c/affinity-1.c +++ gcc/libgomp/testsuite/libgomp.c/affinity-1.c @@ -31,7 +31,7 @@ #ifdef DO_FORK #include <signal.h> -pid_t waitpid (pid_t, int *, int); +#include <sys/wait.h> #endif #ifdef HAVE_PTHREAD_AFFINITY_NP #include <sched.h> diff --git gcc/libgomp/testsuite/libgomp.c/nqueens-1.c gcc/libgomp/testsuite/libgomp.c/nqueens-1.c index ed6c179..9742b7a 100644 --- gcc/libgomp/testsuite/libgomp.c/nqueens-1.c +++ gcc/libgomp/testsuite/libgomp.c/nqueens-1.c @@ -5,8 +5,8 @@ #include <omp.h> #include <stdio.h> #include <string.h> +#include <stdlib.h> -unsigned long int strtoul(const char *, char **, int); int cnt; #pragma omp threadprivate (cnt) diff --git gcc/libgomp/testsuite/libgomp.c/thread-limit-1.c gcc/libgomp/testsuite/libgomp.c/thread-limit-1.c index 7571f23..1d9794a 100644 --- gcc/libgomp/testsuite/libgomp.c/thread-limit-1.c +++ gcc/libgomp/testsuite/libgomp.c/thread-limit-1.c @@ -3,11 +3,7 @@ #include <stdlib.h> #include <unistd.h> - -extern int omp_get_thread_limit (void); -extern int omp_set_dynamic (int); -extern void omp_set_nested (int); -extern int omp_get_num_threads (void); +#include <omp.h> int main () diff --git gcc/libgomp/testsuite/libgomp.c/thread-limit-2.c gcc/libgomp/testsuite/libgomp.c/thread-limit-2.c index ca9ad23..1a97fb6 100644 --- gcc/libgomp/testsuite/libgomp.c/thread-limit-2.c +++ gcc/libgomp/testsuite/libgomp.c/thread-limit-2.c @@ -3,11 +3,7 @@ #include <stdlib.h> #include <unistd.h> - -extern int omp_get_thread_limit (void); -extern int omp_set_dynamic (int); -extern void omp_set_nested (int); -extern int omp_get_num_threads (void); +#include <omp.h> int main ()