Commit Diff
Commit:
975e7598609d7efd15cb10f9f6e201ca94456984
From:
Omar Polo <omar.polo@europecom.net>
Date:
Wed Sep 19 14:58:25 2018 UTC
Message
Switched to __OpenBSD__ instead of HAVE_PLEDGE
commit - e5bea6d2b8062a4a98608f574a7144232b2db970
commit + 975e7598609d7efd15cb10f9f6e201ca94456984
blob - 26678cf2174363d86caa77a1898c99dedb9d70ab
blob + 83cd59c6746c9a2ee1f11144e3ae8026adb4a1e9
--- Makefile
+++ Makefile
@@ -4,9 +4,6 @@ CDEFS = -DUSE_XINERAMA -DUSE_XFT -DUSE_STRCASESTR
OPTIONAL = xinerama xft
CDEFS = -DUSE_XINERAMA -DUSE_XFT -DUSE_STRCASESTR
-# decomment if you're using OpenBSD to add pledge(2) support
-#CDEFS += -DHAVE_PLEDGE
-
# you may not want to change these
CC ?= cc
LIBS = `pkg-config --libs x11 $(OPTIONAL)`
blob - 44f145cb2f6f3862f6d0915e8ada87bd5caa5dc5
blob + 52026836e03968c7925fdc25222e40112df67230
--- mymenu.c
+++ mymenu.c
@@ -1094,7 +1094,7 @@ int main(int argc, char **argv) {
}
int main(int argc, char **argv) {
-#ifdef HAVE_PLEDGE
+#ifdef __OpenBSD__
// stdio & rpat: to read and write stdio/stdout
// unix: to connect to Xorg
pledge("stdio rpath unix", "");
Omar Polo