Define away pledge() on !OpenBSD.

This commit is contained in:
Nicholas Marriott
2017-01-23 12:27:58 +00:00
parent 1ebe79dd62
commit a3d5bfcece
4 changed files with 4 additions and 8 deletions

2
tmux.c
View File

@ -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.