summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 226c926c..3e5e1a1f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -324,6 +324,13 @@ int main(int argc, char* argv[]) {
(void) setlocale(LC_ALL, "");
#endif
+#ifdef __OpenBSD__
+ if (pledge("stdio rpath", NULL) == -1) {
+ perror("pledge");
+ exit(JQ_ERROR_SYSTEM);
+ }
+#endif
+
#ifdef WIN32
jv_tsd_dtoa_ctx_init();
fflush(stdout);