From 52d1e3f298a6f666d080441151f4718552c0fc15 Mon Sep 17 00:00:00 2001 From: degomme Date: Thu, 5 Apr 2018 10:54:36 +0200 Subject: [PATCH] force gnu_source here. It's needed for unistd.h types, which would be not defined if the user only specifies POSIX_SOURCE --- include/smpi/smpi_helpers.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.20.1