tgranular2vtu.c: fix compile warning on non BSD systems - granular - granular dynamics simulation
(HTM) git clone git://src.adamsgaard.dk/granular
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit aac541cd4dac892c59105c80c8aa2e2ff9d422c8
(DIR) parent b24ca7409f3bc811c3a2240d3d8261e2c060d557
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 25 Mar 2021 15:53:41 +0100
granular2vtu.c: fix compile warning on non BSD systems
Diffstat:
M granular2vtu.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/granular2vtu.c b/granular2vtu.c
t@@ -1,3 +1,6 @@
+#ifndef __OpenBSD__
+#define _POSIX_C_SOURCE 200809L
+#endif
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>