diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2018-11-08 21:39:11 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2018-11-08 21:39:11 +0000 |
commit | 2033f45beb8097d778281e7c49068a8817796558 (patch) | |
tree | 4a0aefba885dcc588c5da4e58238a3a6659ae5fc | |
parent | 8991d77974c3278cc7b9bd1352f88ced790d27fa (diff) | |
download | gcc-2033f45beb8097d778281e7c49068a8817796558.zip gcc-2033f45beb8097d778281e7c49068a8817796558.tar.gz gcc-2033f45beb8097d778281e7c49068a8817796558.tar.bz2 |
Fix Solaris build with OpenMP 5.0
* affinity.c: Include <string.h>, <stdio.h>.
(gomp_display_affinity_place): Remove cpusetp.
* teams.c: Include <limits.h>.
From-SVN: r265938
-rw-r--r-- | libgomp/ChangeLog | 6 | ||||
-rw-r--r-- | libgomp/affinity.c | 3 | ||||
-rw-r--r-- | libgomp/teams.c | 1 |
3 files changed, 9 insertions, 1 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 636cb49..a0d0821 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * affinity.c: Include <string.h>, <stdio.h>. + (gomp_display_affinity_place): Remove cpusetp. + * teams.c: Include <limits.h>. + 2018-11-08 Jakub Jelinek <jakub@redhat.com> * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add diff --git a/libgomp/affinity.c b/libgomp/affinity.c index 99a45dc..efe5c42 100644 --- a/libgomp/affinity.c +++ b/libgomp/affinity.c @@ -26,6 +26,8 @@ /* This is a generic stub implementation of a CPU affinity setting. */ #include "libgomp.h" +#include <string.h> +#include <stdio.h> void gomp_init_affinity (void) @@ -142,7 +144,6 @@ void gomp_display_affinity_place (char *buffer, size_t size, size_t *ret, int place) { - cpu_set_t *cpusetp; char buf[sizeof (long) * 3 + 4]; if (gomp_available_cpus > 1) sprintf (buf, "0-%lu", gomp_available_cpus - 1); diff --git a/libgomp/teams.c b/libgomp/teams.c index 5aa0eae..8ef80eb 100644 --- a/libgomp/teams.c +++ b/libgomp/teams.c @@ -26,6 +26,7 @@ /* This file handles the host TEAMS construct. */ #include "libgomp.h" +#include <limits.h> static unsigned gomp_num_teams = 1, gomp_team_num = 0; |