summaryrefslogtreecommitdiff
path: root/math/cln/patches/patch-aa
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2004-03-05 14:46:23 +0000
committeradam <adam@pkgsrc.org>2004-03-05 14:46:23 +0000
commit1699fb8d82dce16f18a918e18edc1a8522761653 (patch)
tree3bffd173f68c492d3e7ce7699b652a53dd225054 /math/cln/patches/patch-aa
parent2c8703a2482ea8874838e6b5e70c139652c573d8 (diff)
downloadpkgsrc-1699fb8d82dce16f18a918e18edc1a8522761653.tar.gz
CLN - Class Library for Numbers is a C++ library providing the following
features: * Rich set of number classes * Elementary, logical, transcendental functions * C++ as implementation language brings efficiency, type safety, and algebraic syntax * Memory efficiency * Speed efficiency * Interoperability
Diffstat (limited to 'math/cln/patches/patch-aa')
-rw-r--r--math/cln/patches/patch-aa22
1 files changed, 22 insertions, 0 deletions
diff --git a/math/cln/patches/patch-aa b/math/cln/patches/patch-aa
new file mode 100644
index 00000000000..39eed5e0b15
--- /dev/null
+++ b/math/cln/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/03/05 14:46:23 adam Exp $
+
+--- src/base/random/cl_random_from.cc.orig 2003-12-29 19:04:08.000000000 +0000
++++ src/base/random/cl_random_from.cc
+@@ -12,7 +12,7 @@
+ #include "cl_base_config.h"
+ #include "cl_low.h"
+
+-#if defined(unix) || defined(__unix) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(_WIN32) && defined(__GNUC__)) || defined(__BEOS__)
++#if defined(unix) || defined(__unix) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(_WIN32) && defined(__GNUC__)) || defined(__BEOS__) || defined(__NetBSD__)
+
+ #include <sys/types.h>
+ #include <unistd.h> // declares getpid()
+@@ -64,7 +64,7 @@ random_state::random_state ()
+ {
+ var uint32 seed_hi;
+ var uint32 seed_lo;
+-#if defined(unix) || defined(__unix) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(_WIN32) && defined(__GNUC__)) || defined(__BEOS__)
++#if defined(unix) || defined(__unix) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(_WIN32) && defined(__GNUC__)) || defined(__BEOS__) || defined(__NetBSD__)
+ seed_lo = ::get_seed();
+ seed_hi = (rand() // zufällige 31 Bit (bei UNIX_BSD) bzw. 16 Bit (bei UNIX_SYSV)
+ << 8) ^ (uintL)(getpid()); // ca. 8 Bit von der Process ID