fluxbox: add patch for gcc-4.3 (thx rehabdoll)

This commit is contained in:
Thomas Penteker 2008-09-18 21:58:07 +02:00
parent 2319bda968
commit 7f0964ff1c
3 changed files with 21 additions and 1 deletions

View File

@ -1 +1,2 @@
990e276ead0d04421dce4080f485caca fluxbox-1.0.0.tar.bz2
b279eaea94403da8eed68b5dc127d3ab fluxbox-gcc43.patch

View File

@ -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 \

View 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>