tFix pledge(2) arguments - cngf-pf - continuum model for granular flows with po… | |
git clone git://src.adamsgaard.dk/cngf-pf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0e50f90cc1bafdc83a03a8a8f7d8f0d9f36492c0 | |
parent c69ce5e644c9313ff845d2798fa9a73b6c943d06 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 13 Nov 2019 21:32:21 +0100 | |
Fix pledge(2) arguments | |
Diffstat: | |
M main.c | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/main.c b/main.c | |
t@@ -142,9 +142,10 @@ main(int argc, char* argv[]) | |
double new_phi, new_k, filetimeclock, res_norm, mu_wall_orig; | |
#ifdef __OpenBSD__ | |
- if (pledge("stdio", NULL) == -1) | |
+ if (pledge("stdio wpath cpath", NULL) == -1) { | |
fprintf(stderr, "error: pledge failed"); | |
exit(1); | |
+ } | |
#endif | |
/* load with default values */ |