Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
force gnu_source here.
authordegomme <augustin.degomme@unibas.ch>
Thu, 5 Apr 2018 08:54:36 +0000 (10:54 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Thu, 5 Apr 2018 08:54:36 +0000 (10:54 +0200)
It's needed for unistd.h types, which would be not defined if the user only specifies POSIX_SOURCE

include/smpi/smpi_helpers.h

index b76af57..13ccaaf 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef MPI_HELPERS_H
 #define MPI_HELPERS_H
 
+#ifndef _GNU_SOURCE
+  #define _GNU_SOURCE
+#endif
+
 #include <unistd.h>
 #include <sys/time.h> /* Load it before the define next line to not mess with the system headers */
 #if _POSIX_TIMERS