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
This commit is contained in:
Rainer Orth 2018-11-08 21:39:11 +00:00 committed by Rainer Orth
parent 8991d77974
commit 2033f45beb
3 changed files with 9 additions and 1 deletions

View File

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

View File

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

View File

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