From a3d5bfcecec49bf197157bae4bee520e613c2efc Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 23 Jan 2017 12:27:58 +0000 Subject: Define away pledge() on !OpenBSD. --- tmux.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'tmux.c') 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. -- cgit