summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2017-01-23 12:27:58 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2017-01-23 12:27:58 +0000
commita3d5bfcecec49bf197157bae4bee520e613c2efc (patch)
tree9515be36c8afabaaf70cfffe6e77915720cde44b /tmux.c
parent1ebe79dd628f009108c3d6dbdbfbfc69b7a6933d (diff)
Define away pledge() on !OpenBSD.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tmux.c b/tmux.c
index 7f55f395..d0de6239 100644
--- a/tmux.c
+++ b/tmux.c
@@ -261,13 +261,11 @@ main(int argc, char **argv)
if (shellcmd != NULL && argc != 0)
usage();
-#ifdef __OpenBSD__
if (pty_open(&ptm_fd) != 0)
errx(1, "open(\"/dev/ptm\"");
if (pledge("stdio rpath wpath cpath flock fattr unix getpw sendfd "
"recvfd proc exec tty ps", NULL) != 0)
err(1, "pledge");
-#endif
/*
* tmux is a UTF-8 terminal, so if TMUX is set, assume UTF-8.