From: degomme Date: Thu, 5 Apr 2018 08:54:36 +0000 (+0200) Subject: force gnu_source here. X-Git-Tag: v3.20~514 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/52d1e3f298a6f666d080441151f4718552c0fc15?hp=398f1a82c992764ca69db74edde82ad36a6b1277 force gnu_source here. It's needed for unistd.h types, which would be not defined if the user only specifies POSIX_SOURCE --- diff --git a/include/smpi/smpi_helpers.h b/include/smpi/smpi_helpers.h index b76af574da..13ccaafd69 100644 --- a/include/smpi/smpi_helpers.h +++ b/include/smpi/smpi_helpers.h @@ -1,6 +1,10 @@ #ifndef MPI_HELPERS_H #define MPI_HELPERS_H +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif + #include #include /* Load it before the define next line to not mess with the system headers */ #if _POSIX_TIMERS