Commit c1d62412 by Marek Polacek Committed by Marek Polacek

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
parent 70261a4f
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.
* testsuite/libgomp.c/nqueens-1.c: Likewise.
* testsuite/libgomp.c/pr26943-3.c: Likewise.
......
......@@ -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>
......
......@@ -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)
......
......@@ -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 ()
......
......@@ -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 ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment