CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
dillo: fixed AR usage and added ssl support (https)
[attic/ports/opt-cross.git] / blackbox / blackbox-0.70.1-include-fix.diff
1 --- blackbox-0.70.1/lib/Image.cc.orig 2008-10-03 09:23:56.000000000 +0200
2 +++ blackbox-0.70.1/lib/Image.cc 2008-10-03 09:24:08.000000000 +0200
3 @@ -44,6 +44,7 @@
4 #include <math.h>
5 #include <stdio.h>
6 #include <stdlib.h>
7 +#include <string.h>
8
9 // #define COLORTABLE_DEBUG
10 // #define MITSHM_DEBUG
11 --- blackbox-0.70.1.orig/lib/Resource.cc 2008-10-07 18:32:55.000000000 +0200
12 +++ blackbox-0.70.1/lib/Resource.cc 2008-10-07 18:34:05.000000000 +0200
13 @@ -29,6 +29,7 @@
14 #include <X11/Xresource.h>
15
16 #include <stdio.h>
17 +#include <strings.h>
18
19
20 bt::Resource::Resource(void)
21 --- blackbox-0.70.1.orig/lib/XDG.cc 2008-10-07 18:32:55.000000000 +0200
22 +++ blackbox-0.70.1/lib/XDG.cc 2008-10-07 18:47:25.000000000 +0200
23 @@ -26,7 +26,7 @@
24 #include "XDG.hh"
25
26 #include <stdlib.h>
27 -
28 +#include <algorithm>
29
30 // make sure directory names end with a slash
31 static std::string terminateDir(const std::string &string)
32 --- blackbox-0.70.1.orig/src/BlackboxResource.cc 2008-10-07 18:32:55.000000000 +0200
33 +++ blackbox-0.70.1/src/BlackboxResource.cc 2008-10-07 18:48:13.000000000 +0200
34 @@ -33,6 +33,7 @@
35 #include <X11/Xutil.h>
36 #include <X11/cursorfont.h>
37
38 +#include <strings.h>
39
40 BlackboxResource::BlackboxResource(const std::string& rc): rc_file(rc) {
41 screen_resources = 0;
42 --- blackbox-0.70.1.orig/src/ScreenResource.cc 2008-10-07 18:32:55.000000000 +0200
43 +++ blackbox-0.70.1/src/ScreenResource.cc 2008-10-07 18:49:10.000000000 +0200
44 @@ -32,7 +32,7 @@
45 #include <Resource.hh>
46
47 #include <assert.h>
48 -
49 +#include <strings.h>
50
51 static const int iconify_width = 9;
52 static const int iconify_height = 9;
53 --- blackbox-0.70.1.orig/src/Screen.cc 2008-10-07 18:32:55.000000000 +0200
54 +++ blackbox-0.70.1/src/Screen.cc 2008-10-07 18:50:01.000000000 +0200
55 @@ -47,7 +47,7 @@
56 #include <assert.h>
57 #include <ctype.h>
58 #include <dirent.h>
59 -
60 +#include <string.h>
61
62 static bool running = true;
63 static int anotherWMRunning(Display *, XErrorEvent *) {
64 --- blackbox-0.70.1.orig/src/main.cc 2008-10-07 18:32:55.000000000 +0200
65 +++ blackbox-0.70.1/src/main.cc 2008-10-07 18:50:48.000000000 +0200
66 @@ -35,7 +35,7 @@
67 #include "../version.h"
68
69 #include <stdio.h>
70 -
71 +#include <string.h>
72
73 static void showHelp(int exitval) {
74 // print version - this should not be localized!
75 --- blackbox-0.70.1.orig/util/bsetroot.cc 2008-10-07 18:32:55.000000000 +0200
76 +++ blackbox-0.70.1/util/bsetroot.cc 2008-10-07 18:52:33.000000000 +0200
77 @@ -31,7 +31,8 @@
78
79 #include <X11/Xatom.h>
80 #include <stdio.h>
81 -
82 +#include <string.h>
83 +#include <stdlib.h>
84
85 // ignore all X errors
86 static int x11_error(::Display *, XErrorEvent *)