summaryrefslogtreecommitdiffhomepage
path: root/dwm.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-09-11 17:21:38 +0200
committerbakkeby <[email protected]>2020-09-11 17:21:38 +0200
commitdc9e57a6b6e9495a53c65b9402593ab81ef510a7 (patch)
tree0faf7144ff36359e63dd9dd6ecc544c1728bb129 /dwm.c
parent4a35cd2704678656f74c066816feb7e045720efb (diff)
downloaddwm-flexipatch-dc9e57a6b6e9495a53c65b9402593ab81ef510a7.tar.gz
dwm-flexipatch-dc9e57a6b6e9495a53c65b9402593ab81ef510a7.zip
swallow: upgrading to latest version with OpenBSD support
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index d1bbfe9..194d46f 100644
--- a/dwm.c
+++ b/dwm.c
@@ -4394,7 +4394,11 @@ main(int argc, char *argv[])
#endif // COOL_AUTOSTART_PATCH
setup();
#ifdef __OpenBSD__
+ #if SWALLOW_PATCH
+ if (pledge("stdio rpath proc exec ps", NULL) == -1)
+ #else
if (pledge("stdio rpath proc exec", NULL) == -1)
+ #endif // SWALLOW_PATCH
die("pledge");
#endif /* __OpenBSD__ */
scan();