diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-06-10 23:09:08 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-06-10 23:09:08 +0200 |
commit | 2e0f24d00b85c617400413bb2d179fd1028420c4 (patch) | |
tree | 95488f07f3a5e6a8558cbde11d2372d1c53ca246 /lib/misc.c | |
parent | b6cd9e9fe0aa86e83fc4a43b3db2240839e2103a (diff) | |
parent | 6a72a574df321683ee51f7cef14255cbb4cdbeba (diff) |
Merge support for cross-compiling for Windows using the mingw32 compiler.
Diffstat (limited to 'lib/misc.c')
-rw-r--r-- | lib/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |