projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make nested type loading lazier.
[mono.git]
/
mono
/
metadata
/
rand.c
diff --git
a/mono/metadata/rand.c
b/mono/metadata/rand.c
index 28e4b8716022d292b3251a7b774e2b5ccbdf43a8..9b657343ca4eb028dfb144777d745d7486479227 100644
(file)
--- a/
mono/metadata/rand.c
+++ b/
mono/metadata/rand.c
@@
-6,8
+6,8
@@
* Patrik Torstensson (p@rxc.se)
* Sebastien Pouliot (sebastien@ximian.com)
*
* Patrik Torstensson (p@rxc.se)
* Sebastien Pouliot (sebastien@ximian.com)
*
- *
(C) 2001 Ximian, Inc.
- * Copyright
(C) 2004-2005
Novell, Inc (http://www.novell.com)
+ *
Copyright 2001-2003 Ximian, Inc (http://www.ximian.com)
+ * Copyright
2004-2009
Novell, Inc (http://www.novell.com)
*/
#include <config.h>
*/
#include <config.h>
@@
-15,13
+15,18
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <unistd.h>
+#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
#include <mono/metadata/object.h>
#include <mono/metadata/rand.h>
#include <mono/metadata/exception.h>
#include <mono/metadata/object.h>
#include <mono/metadata/rand.h>
#include <mono/metadata/exception.h>
-#if !defined(
PLATFORM
_WIN32)
+#if !defined(
HOST
_WIN32)
#include <sys/socket.h>
#include <sys/un.h>
#include <errno.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <errno.h>
@@
-92,7
+97,7
@@
get_entropy_from_server (const char *path, guchar *buf, int len)
}
#endif
}
#endif
-#if defined (
PLATFORM
_WIN32)
+#if defined (
HOST
_WIN32)
#include <windows.h>
#include <wincrypt.h>
#include <windows.h>
#include <wincrypt.h>