From: Marek Polacek Date: Mon, 6 Oct 2014 11:54:24 +0000 (+0000) Subject: affinity-1.c: Include . X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1d62412c3e5e146a586106ccff7755c8b4a36a6;p=gcc.git affinity-1.c: Include . * testsuite/libgomp.c/affinity-1.c: Include . * testsuite/libgomp.c/nqueens-1.c: Include . * testsuite/libgomp.c/thread-limit-1.c: Include * testsuite/libgomp.c/thread-limit-2.c: Likewise. From-SVN: r215927 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index b5de70b45c3..661653e1ac8 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,10 @@ +2014-10-06 Marek Polacek + + * testsuite/libgomp.c/affinity-1.c: Include . + * testsuite/libgomp.c/nqueens-1.c: Include . + * testsuite/libgomp.c/thread-limit-1.c: Include + * testsuite/libgomp.c/thread-limit-2.c: Likewise. + 2014-10-06 Marek Polacek * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations. 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 -pid_t waitpid (pid_t, int *, int); +#include #endif #ifdef HAVE_PTHREAD_AFFINITY_NP #include 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 #include #include +#include -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 #include - -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 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 #include - -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 int main ()