aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/blackbox/files/patch-src_blackbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/blackbox/files/patch-src_blackbox.cc')
-rw-r--r--x11-wm/blackbox/files/patch-src_blackbox.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-wm/blackbox/files/patch-src_blackbox.cc b/x11-wm/blackbox/files/patch-src_blackbox.cc
new file mode 100644
index 000000000000..866a1d8cf4eb
--- /dev/null
+++ b/x11-wm/blackbox/files/patch-src_blackbox.cc
@@ -0,0 +1,28 @@
+--- src/blackbox.cc.orig 2013-08-31 16:03:04.354825567 +0200
++++ src/blackbox.cc 2013-08-31 16:12:46.759944855 +0200
+@@ -27,6 +27,8 @@
+ #include "Slit.hh"
+ #include "Window.hh"
+
++#include <cstdlib>
++
+ #include <Pen.hh>
+ #include <PixmapCache.hh>
+ #include <Util.hh>
+@@ -36,6 +38,7 @@
+ #include <sys/stat.h>
+ #include <assert.h>
+ #include <signal.h>
++#include <stdlib.h>
+ #include <unistd.h>
+
+ // #define FOCUS_DEBUG
+@@ -422,7 +425,7 @@
+ if (managed == 0) {
+ fprintf(stderr, "%s: no managable screens found, exiting...\n",
+ applicationName().c_str());
+- ::exit(3);
++ std::exit(3);
+ }
+
+ screen_list_count = managed;