aboutsummaryrefslogtreecommitdiffstats
path: root/lib/misc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-06-30 00:41:39 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2008-06-30 00:41:39 +0100
commitf5d1b3185140e690a6503b9e68c7ea28655b405e (patch)
treef679a139ecca219aa2c7a07adcaefd3000c8c801 /lib/misc.c
parentcd63d5822e76a6126bb3017567c9ce2869a44e0b (diff)
parent913545e54123296fb8229ecad2c77a6e899e0242 (diff)
Merging changes from Jelmer: It's now possible to cross-compile a Windows
version of BitlBee from Linux. No working SSL support yet though!
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 1ecb5181..c087f6a5 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -372,6 +372,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? */
@@ -421,6 +422,7 @@ void random_bytes( unsigned char *buf, int count )
}
if( !use_dev )
+#endif
{
int i;