~keepassx/keepassx/debian

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix FTBFS with gcc 4.7.
Author: Felix Geyer <debfx-pkg@fobos.de>
Bug-Debian: http://bugs.debian.org/667224

--- keepassx-0.4.3.orig/src/lib/random.cpp
+++ keepassx-0.4.3/src/lib/random.cpp
@@ -23,6 +23,7 @@
 
 #if defined(Q_WS_X11) || defined(Q_WS_MAC)
 	#include <QFile>
+	#include <unistd.h>
 #elif defined(Q_WS_WIN)
 	#include <windows.h>
 	#include <wincrypt.h>