* testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
* testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
* testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
* testsuite/libgomp.c/thread-limit-2.c: Likewise.
From-SVN: r215927
+2014-10-06 Marek Polacek <polacek@redhat.com>
+
+ * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
+ * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
+ * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
+ * testsuite/libgomp.c/thread-limit-2.c: Likewise.
+
2014-10-06 Marek Polacek <polacek@redhat.com>
* testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
#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>
#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)
#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 ()
#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 ()