summaryrefslogtreecommitdiffstats
path: root/x11-wm/blackbox/files/patch-src_blackbox.cc
blob: 866a1d8cf4eb3943f617f234064bab0e19eba874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
OpenPOWER on IntegriCloud