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:
parent
70261a4fb1
commit
c1d62412c3
@ -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.
|
||||
|
@ -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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user