[BACK]Return to patch-src_lib_random.cpp CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / security / keepassx / patches

File: [cvs.NetBSD.org] / pkgsrc / security / keepassx / patches / Attic / patch-src_lib_random.cpp (download)

Revision 1.4, Sun Dec 6 14:20:34 2015 UTC (8 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.3: +3 -1 lines

Fix CVE-2015-8378 using the patch from Debian.
Bump PKGREVISION.
While here, clean up pkglint.

$NetBSD: patch-src_lib_random.cpp,v 1.4 2015/12/06 14:20:34 wiz Exp $

Add a bunch of missing includes hidden by libstdc++ namespace pollution.

--- src/lib/random.cpp.orig	2013-05-04 00:33:31.000000000 +0000
+++ 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>