fluxbox: add patch for gcc-4.3 (thx rehabdoll)
This commit is contained in:
parent
2319bda968
commit
7f0964ff1c
@ -1 +1,2 @@
|
||||
990e276ead0d04421dce4080f485caca fluxbox-1.0.0.tar.bz2
|
||||
b279eaea94403da8eed68b5dc127d3ab fluxbox-gcc43.patch
|
||||
|
@ -6,11 +6,12 @@
|
||||
name=fluxbox
|
||||
version=1.0.0
|
||||
release=1
|
||||
source=(http://dl.sourceforge.net/$name/$name-$version.tar.bz2)
|
||||
source=(http://dl.sourceforge.net/$name/$name-$version.tar.bz2 $name-gcc43.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
patch -p1 -i ../fluxbox-gcc43.patch
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-nls \
|
||||
|
18
fluxbox/fluxbox-gcc43.patch
Normal file
18
fluxbox/fluxbox-gcc43.patch
Normal file
@ -0,0 +1,18 @@
|
||||
diff --git a/src/main.cc b/src/main.cc
|
||||
index e4e16ac..ab18f6c 100644
|
||||
--- a/src/main.cc
|
||||
+++ b/src/main.cc
|
||||
@@ -45,6 +45,12 @@
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
+#ifdef HAVE_CSTRING
|
||||
+ #include <cstring>
|
||||
+#else
|
||||
+ #include <string.h>
|
||||
+#endif
|
||||
+
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <stdexcept>
|
||||
|
Loading…
Reference in New Issue
Block a user