aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-28 19:44:20 +0100
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-28 19:44:20 +0100
commit27b589b14bfec5008b2b7b7ec0df0056024099c8 (patch)
tree86945efbc6a0cd7b0795c12a13e4a427e0a552d2
parent54d1c95b31af912939d711821c56c70ae82fa214 (diff)
ifdef pledge()
-rw-r--r--xwinwrap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xwinwrap.c b/xwinwrap.c
index 32734ca..81e9527 100644
--- a/xwinwrap.c
+++ b/xwinwrap.c
@@ -331,8 +331,10 @@ int main(int argc, char **argv) {
bool skip_pager = false;
bool daemonize = false;
+#ifdef __OpenBSD__
if (pledge("stdio unix proc exec inet rpath", NULL) == -1)
fprintf(stderr, "pledge\n");
+#endif
win_shape shape = SHAPE_RECT;
Pixmap mask;