affinity-1.c: Include <sys/wait.h>.

* 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
This commit is contained in:
Marek Polacek 2014-10-06 11:54:24 +00:00 committed by Marek Polacek
parent 70261a4fb1
commit c1d62412c3
5 changed files with 11 additions and 12 deletions

View File

@ -1,3 +1,10 @@
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.

View File

@ -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>

View File

@ -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)

View File

@ -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 ()

View File

@ -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 ()