summaryrefslogtreecommitdiff
path: root/libre/blackbox-libre/textpropertytostring-unconditional.patch
blob: ed320388a1c39c4f166ae71995d3a7b164a3494e (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
Description: Declare bt::textPropertyToString unconditionally.
Author: Jakub Wilk <jwilk@debian.org>
Forwarded: no
Bug-Debian: http://bugs.debian.org/614468
Last-Update: 2011-03-12

--- a/lib/Util.hh
+++ b/lib/Util.hh
@@ -25,6 +25,8 @@
 #ifndef __Util_hh
 #define __Util_hh
 
+#include <X11/Xutil.h>
+
 #include <limits.h>
 #include <string>
 
@@ -94,10 +96,8 @@
 
   std::string tolower(const std::string &string);
 
-#ifdef _XUTIL_H_
   std::string textPropertyToString(::Display *display,
                                    ::XTextProperty& text_prop);
-#endif
 
 } // namespace bt