diff options
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.c/affinity-1.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/nqueens-1.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/thread-limit-1.c | 6 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/thread-limit-2.c | 6 |
4 files changed, 4 insertions, 12 deletions
diff --git a/libgomp/testsuite/libgomp.c/affinity-1.c b/libgomp/testsuite/libgomp.c/affinity-1.c index a1a2a12e56c..21f344cada3 100644 --- a/libgomp/testsuite/libgomp.c/affinity-1.c +++ b/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 a/libgomp/testsuite/libgomp.c/nqueens-1.c b/libgomp/testsuite/libgomp.c/nqueens-1.c index ed6c17921ea..9742b7a18df 100644 --- a/libgomp/testsuite/libgomp.c/nqueens-1.c +++ b/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 a/libgomp/testsuite/libgomp.c/thread-limit-1.c b/libgomp/testsuite/libgomp.c/thread-limit-1.c index 7571f23e24d..1d9794a7a4f 100644 --- a/libgomp/testsuite/libgomp.c/thread-limit-1.c +++ b/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 a/libgomp/testsuite/libgomp.c/thread-limit-2.c b/libgomp/testsuite/libgomp.c/thread-limit-2.c index ca9ad23b31f..1a97fb62985 100644 --- a/libgomp/testsuite/libgomp.c/thread-limit-2.c +++ b/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 () |