aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/calmwm.c b/calmwm.c
index 901c6ff..64adb8c 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -110,8 +110,10 @@ main(int argc, char **argv)
xfd = x_init(display_name);
cwm_status = CWM_RUNNING;
+#ifdef __OpenBSD__
if (pledge("stdio rpath proc exec", NULL) == -1)
err(1, "pledge");
+#endif
memset(&pfd, 0, sizeof(pfd));
pfd[0].fd = xfd;