summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2008-04-22 17:00:28 +0000
committerSamuli Suominen <drac@gentoo.org>2008-04-22 17:00:28 +0000
commit3c59ed4b848ebdf2b2793949585076aaa9a58923 (patch)
tree4f39669c6f1bf24e7681ee6824ecc6c17b626cb6 /x11-misc/lineakd/files
parentAdd ~sparc (diff)
downloadgentoo-2-3c59ed4b848ebdf2b2793949585076aaa9a58923.tar.gz
gentoo-2-3c59ed4b848ebdf2b2793949585076aaa9a58923.tar.bz2
gentoo-2-3c59ed4b848ebdf2b2793949585076aaa9a58923.zip
Fix building with GCC 4.3, thanks to Peter Alfredsen wrt #218784.
(Portage version: 2.1.5_rc6)
Diffstat (limited to 'x11-misc/lineakd/files')
-rw-r--r--x11-misc/lineakd/files/lineakd-0.9.0-gcc43.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/x11-misc/lineakd/files/lineakd-0.9.0-gcc43.patch b/x11-misc/lineakd/files/lineakd-0.9.0-gcc43.patch
new file mode 100644
index 000000000000..95e1c7cde8a3
--- /dev/null
+++ b/x11-misc/lineakd/files/lineakd-0.9.0-gcc43.patch
@@ -0,0 +1,43 @@
+
+--- lineakd-0.9.orig/lineak/xmgr.cpp
++++ lineakd-0.9/lineak/xmgr.cpp
+@@ -21,6 +21,8 @@
+ #include <lineak/lbutton.h>
+
+ extern "C" {
++ #include <stdlib.h>
++ #include <string.h>
+ #include <signal.h>
+ #include <X11/Xlib.h>
+ #include <X11/keysym.h>
+--- lineakd-0.9.orig/lineak/defloader.h
++++ lineakd-0.9/lineak/defloader.h
+@@ -23,6 +23,7 @@
+ # endif
+
+ # include <lineak/loader.h>
++# include <cstdlib>
+ # include <map>
+
+ class LDef;
+--- lineakd-0.9.orig/lineak/pluginmanager.cpp
++++ lineakd-0.9/lineak/pluginmanager.cpp
+@@ -34,6 +34,7 @@
+ #include <unistd.h>
+ #include <dirent.h>
+ #include <dlfcn.h>
++#include <string.h>
+ }
+
+ using namespace lineak_core_functions;
+--- lineakd-0.9.orig/lineak/cdromctrl.cpp
++++ lineakd-0.9/lineak/cdromctrl.cpp
+@@ -51,6 +51,7 @@
+
+ #include <stdio.h>
+ #include <errno.h>
++#include <string.h>
+ #include <unistd.h>
+
+ }
+