tgranular2vtu.c: fix compile warning on non BSD systems - granular - granular d… | |
git clone git://src.adamsgaard.dk/granular | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit aac541cd4dac892c59105c80c8aa2e2ff9d422c8 | |
parent b24ca7409f3bc811c3a2240d3d8261e2c060d557 | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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> |