aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.c b/server.c
index 2af2c442..ca1b9b1f 100644
--- a/server.c
+++ b/server.c
@@ -26,7 +26,6 @@
#include <errno.h>
#include <event.h>
#include <fcntl.h>
-#include <paths.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@@ -173,9 +172,11 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
}
close(pair[0]);
+#ifdef __OpenBSD__
if (pledge("stdio rpath wpath cpath fattr unix recvfd proc exec tty "
"ps", NULL) != 0)
fatal("pledge failed");
+#endif
RB_INIT(&windows);
RB_INIT(&all_window_panes);