aboutsummaryrefslogtreecommitdiffstats
path: root/lib/misc.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-06-10 23:09:08 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-06-10 23:09:08 +0200
commit2e0f24d00b85c617400413bb2d179fd1028420c4 (patch)
tree95488f07f3a5e6a8558cbde11d2372d1c53ca246 /lib/misc.c
parentb6cd9e9fe0aa86e83fc4a43b3db2240839e2103a (diff)
parent6a72a574df321683ee51f7cef14255cbb4cdbeba (diff)
Merge support for cross-compiling for Windows using the mingw32 compiler.
Diffstat (limited to 'lib/misc.c')
-rw-r--r--lib/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/misc.c b/lib/misc.c
index ccf208b5..0998b7e2 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -397,6 +397,7 @@ signed int do_iconv( char *from_cs, char *to_cs, char *src, char *dst, size_t si
lack of entropy won't halt BitlBee. */
void random_bytes( unsigned char *buf, int count )
{
+#ifndef _WIN32
static int use_dev = -1;
/* Actually this probing code isn't really necessary, is it? */
@@ -446,6 +447,7 @@ void random_bytes( unsigned char *buf, int count )
}
if( !use_dev )
+#endif
{
int i;