commit f46938ca1cdfab045db1821b08bdcd462ca37dbc
parent 45b98d5f0c40ca102caf8238afdefbbb1fb2e645
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 16 Mar 2022 14:16:37 +0000
Fix compilation errors
We have to set the _POSIX_C_SOURCE to use the nanosleep function
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/sdis_mpi.c b/src/sdis_mpi.c
@@ -13,6 +13,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#define _POSIX_C_SOURCE 199309L /* nanosleep */
+
#include "sdis_c.h"
#include "sdis_device_c.h"
#include "sdis_mpi.h"