--- /dev/null
+diff -up ./src/lib/random.cpp.gcc43 ./src/lib/random.cpp
+--- ./src/lib/random.cpp.gcc43 2008-05-10 11:00:47.000000000 +0200
++++ ./src/lib/random.cpp 2008-08-23 09:28:46.000000000 +0200
+@@ -19,6 +19,7 @@
+ ***************************************************************************/
+
+ #include "random.h"
++#include <cstdlib>
+
+
+ #if defined(Q_WS_X11) || defined(Q_WS_MAC)
--- /dev/null
+diff -up keepassx-0.4.3/src/lib/random.cpp.gcc47 keepassx-0.4.3/src/lib/random.cpp
+--- keepassx-0.4.3/src/lib/random.cpp.gcc47 2012-03-30 18:17:25.913476536 -0400
++++ keepassx-0.4.3/src/lib/random.cpp 2012-03-30 18:17:33.346409646 -0400
+@@ -20,6 +20,7 @@
+
+ #include "random.h"
+ #include <cstdlib>
++#include <unistd.h>
+
+
+ #if defined(Q_WS_X11) || defined(Q_WS_MAC)