pkgsrc-wip/sunbird/patches/patch-af

23 lines
760 B
Text
Raw Normal View History

$NetBSD: patch-af,v 1.1.1.1 2008/11/06 11:50:47 thomasklausner Exp $
--- security/nss/lib/freebl/unix_rand.c.orig 2007-07-25 23:18:55.000000000 +0000
+++ security/nss/lib/freebl/unix_rand.c
@@ -35,6 +35,7 @@
* ***** END LICENSE BLOCK ***** */
#include <stdio.h>
+#include <fcntl.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
@@ -185,7 +186,8 @@ static SECStatus RNG_kstat(PRUint32* fed
#endif
#if defined(SCO) || defined(UNIXWARE) || defined(BSDI) || defined(FREEBSD) \
- || defined(NETBSD) || defined(NTO) || defined(DARWIN) || defined(OPENBSD)
+ || defined(NETBSD) || defined(NTO) || defined(DARWIN) || defined(OPENBSD) \
+ || defined(DRAGONFLY)
#include <sys/times.h>
#define getdtablesize() sysconf(_SC_OPEN_MAX)