mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
fix keepassx under gcc 4.8
This commit is contained in:
parent
a34d00f3b4
commit
5acc2fef25
2 changed files with 15 additions and 0 deletions
|
@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
|
|||
qmake PREFIX=$out
|
||||
'';
|
||||
|
||||
patches = [ ./random.patch ];
|
||||
|
||||
buildInputs = [ bzip2 qt4 libX11 xextproto libXtst ];
|
||||
|
||||
meta = {
|
||||
|
|
13
pkgs/applications/misc/keepassx/random.patch
Normal file
13
pkgs/applications/misc/keepassx/random.patch
Normal 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>
|
Loading…
Reference in a new issue