fix keepassx under gcc 4.8

This commit is contained in:
Aristid Breitkreuz 2014-01-21 22:20:21 +01:00
parent a34d00f3b4
commit 5acc2fef25
2 changed files with 15 additions and 0 deletions

View file

@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
qmake PREFIX=$out
'';
patches = [ ./random.patch ];
buildInputs = [ bzip2 qt4 libX11 xextproto libXtst ];
meta = {

View file

@ -0,0 +1,13 @@
--- a/src/lib/random.cpp 2014-01-21 21:15:55.829312723 +0000
+++ b/src/lib/random.cpp 2014-01-21 21:16:36.752535839 +0000
@@ -28,6 +28,10 @@
#include <wincrypt.h>
#include <QSysInfo>
#endif
+#ifndef Q_WS_WIN
+ #include <sys/types.h>
+ #include <unistd.h>
+#endif
#include <QCryptographicHash>
#include <QCursor>