mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
office/keepassx: Fix build with gcc47
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
8cf6f4066d
commit
c9be4913c8
2 changed files with 15 additions and 1 deletions
12
office/keepassx/keepassx-0.4.3-gcc47.patch
Normal file
12
office/keepassx/keepassx-0.4.3-gcc47.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/src/lib/random.cpp b/src/lib/random.cpp
|
||||
index 1007172..f12dd1c 100644
|
||||
--- a/src/lib/random.cpp
|
||||
+++ b/src/lib/random.cpp
|
||||
@@ -19,6 +19,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "random.h"
|
||||
+#include <unistd.h>
|
||||
|
||||
|
||||
#if defined(Q_WS_X11) || defined(Q_WS_MAC)
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=keepassx
|
||||
VERSION=0.4.3
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
|
@ -71,6 +71,8 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < $CWD/keepassx-0.4.3-gcc47.patch
|
||||
|
||||
qmake \
|
||||
QMAKE_CFLAGS="$SLKCFLAGS" \
|
||||
QMAKE_CXXFLAGS="$SLKCFLAGS"
|
||||
|
|
Loading…
Reference in a new issue