blackbox: fix compilation with recent gcc's

This commit is contained in:
Johannes Winkelmann 2008-10-07 10:48:47 +02:00
parent 149969802a
commit d5ab82053b
3 changed files with 14 additions and 1 deletions

View File

@ -1 +1,2 @@
d6921a3cff4f11583f5bdc2d5a2fb9a3 blackbox-0.70.1-include-fix.diff
53b84260b9d38b35fb25b4baf7bb795a blackbox-0.70.1.tar.bz2

View File

@ -6,11 +6,13 @@
name=blackbox
version=0.70.1
release=1
source=(http://dl.sourceforge.net/sourceforge/blackboxwm/$name-$version.tar.bz2)
source=(http://dl.sourceforge.net/sourceforge/blackboxwm/$name-$version.tar.bz2
blackbox-0.70.1-include-fix.diff)
build () {
cd $name-$version
patch -p1 -i $SRC/blackbox-0.70.1-include-fix.diff
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install

View File

@ -0,0 +1,10 @@
--- blackbox-0.70.1/lib/Image.cc.orig 2008-10-03 09:23:56.000000000 +0200
+++ blackbox-0.70.1/lib/Image.cc 2008-10-03 09:24:08.000000000 +0200
@@ -44,6 +44,7 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
// #define COLORTABLE_DEBUG
// #define MITSHM_DEBUG