network/fqterm: Fixed build with gcc47

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
vvoody 2012-09-13 17:34:15 -05:00 committed by Robby Workman
parent d81bf1340f
commit 7561a9f6f5
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,10 @@
--- src/common/fqterm_trace.h 2011-09-28 17:10:16.000000000 +0200
+++ src/common/fqterm_trace.h.gcc47 2012-09-13 10:37:18.414623673 +0200
@@ -22,6 +22,7 @@
#define FQTERM_TRACE_H
#include <cassert>
+#include <unistd.h>
#include <QtDebug>
#include <QFileInfo>

View File

@ -6,7 +6,7 @@
PRGNAM=fqterm
VERSION=${VERSION:-0.9.6.10}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -51,6 +51,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Fix for compiling under gcc-4.7
patch -p0 < $CWD/fqterm-0.9.6.10-gcc47.patch
mkdir build
cd build
cmake \