$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r51400 - trunk/libs/random
From: steven_at_[hidden]
Date: 2009-02-22 18:43:38
Author: steven_watanabe
Date: 2009-02-22 18:43:38 EST (Sun, 22 Feb 2009)
New Revision: 51400
URL: http://svn.boost.org/trac/boost/changeset/51400
Log:
Apply patch for FreeBSD. Fixes #2027
Text files modified:
trunk/libs/random/random_device.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/random/random_device.cpp
==============================================================================
--- trunk/libs/random/random_device.cpp (original)
+++ trunk/libs/random/random_device.cpp 2009-02-22 18:43:38 EST (Sun, 22 Feb 2009)
@@ -22,7 +22,7 @@
#endif
-#ifdef __linux__
+#if defined(__linux__) || defined (__FreeBSD__)
// the default is the unlimited capacity device, using some secure hash
// try "/dev/random" for blocking when the entropy pool has drained
@@ -90,7 +90,7 @@
int fd;
};
-#endif // __linux__
+#endif // __linux__ || __FreeBSD__
boost::random_device::random_device(const std::string& token)