pkgsrc/security/cyrus-sasl/patches/patch-ai
jlam 78332fa503 Use "/dev/urandom" for random data source if it exists.
Fixes:	pkg/11469 by Chris Jones <chris@cjones.org>
	pkg/12092 by Jesse Off <joff@nuewmonics.com>
2001-01-31 22:47:53 +00:00

21 lines
465 B
Text

$NetBSD: patch-ai,v 1.1 2001/01/31 22:47:53 jlam Exp $
--- acconfig.h.orig Wed Jul 5 12:59:25 2000
+++ acconfig.h
@@ -123,10 +123,15 @@
/* define if your system has getpid() */
#undef HAVE_GETPID
+/* location of the random number generator */
+#undef SASL_DEV_RANDOM
+
@BOTTOM@
/* location of the random number generator */
-#ifndef DEV_RANDOM
+#ifdef SASL_DEV_RANDOM
+#define DEV_RANDOM SASL_DEV_RANDOM
+#else
#define DEV_RANDOM "/dev/random"
#endif