network/centerim: Added a patch for gcc-4.7.x.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2012-09-15 21:51:47 +02:00 committed by dsomero
parent 223f7ff176
commit 43c6222a6b
2 changed files with 15 additions and 1 deletions

View file

@ -24,7 +24,7 @@
PRGNAM=centerim
VERSION=4.22.10
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -65,6 +65,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
# Fix for gcc-4.7.x
patch -p1 < $CWD/gcc47.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \

View file

@ -0,0 +1,11 @@
diff -Naur centerim-4.22.10.orig/libicq2000/libicq2000/sigslot.h centerim-4.22.10/libicq2000/libicq2000/sigslot.h
--- centerim-4.22.10.orig/libicq2000/libicq2000/sigslot.h 2010-10-26 19:19:06.000000000 +0200
+++ centerim-4.22.10/libicq2000/libicq2000/sigslot.h 2012-09-15 21:46:10.469007313 +0200
@@ -84,6 +84,7 @@
#include <set>
#include <list>
+#include <unistd.h>
#if defined(SIGSLOT_PURE_ISO) || (!defined(WIN32) && !defined(SIGSLOT_USE_POSIX_THREADS))
# define _SIGSLOT_SINGLE_THREADED