summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-15 21:51:47 +0200
committerdsomero <xgizzmo@slackbuilds.org>2012-09-16 19:44:41 -0400
commit43c6222a6ba51d7c0563710d6d3535e62dd3f2a4 (patch)
tree2448e538a4a74f66dcaa96b212f7702e5ada6984
parent223f7ff17626a3514733dddedbed0ea998ef5098 (diff)
downloadslackbuilds-43c6222a6ba51d7c0563710d6d3535e62dd3f2a4.tar.gz
network/centerim: Added a patch for gcc-4.7.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--network/centerim/centerim.SlackBuild5
-rw-r--r--network/centerim/gcc47.patch11
2 files changed, 15 insertions, 1 deletions
diff --git a/network/centerim/centerim.SlackBuild b/network/centerim/centerim.SlackBuild
index 418f014083..51677e0e79 100644
--- a/network/centerim/centerim.SlackBuild
+++ b/network/centerim/centerim.SlackBuild
@@ -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 \
diff --git a/network/centerim/gcc47.patch b/network/centerim/gcc47.patch
new file mode 100644
index 0000000000..191956c11b
--- /dev/null
+++ b/network/centerim/gcc47.patch
@@ -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