1
1

* __USE_GNU must be set in order to get the paffinity declarations.

So define the constant if it isn't already defined.  Something else
  includes stdio.h, which has a bunch of declarations that really
  confuse non-GNU compilers, so be sure to include that one before
  setting __USE_GNU.

refs trac:280

This commit was SVN r11265.

The following Trac tickets were found above:
  Ticket 280 --> https://svn.open-mpi.org/trac/ompi/ticket/280
Этот коммит содержится в:
Brian Barrett 2006-08-20 01:45:23 +00:00
родитель a1b0f2d5bd
Коммит c93288a96e

Просмотреть файл

@ -20,6 +20,15 @@
/* This component will only be compiled on Linux, where we are
guaranteed to have <unistd.h> and friends */
#include <stdio.h>
/* the affinity macros are only exposed if __USE_GNU is set (at least,
on Suse Linux for PPC). However, __USE_GNU causes problems for
some compilers (IBM XL) with stdio.h. So include stdio.h, then
set __USE_GNU. */
#ifndef __USE_GNU
#define __USE_GNU 1
#endif
#include <sched.h>
#include <unistd.h>
#include <stdlib.h>