mono-wsq.h \
monitor.c \
monitor.h \
+ nacl-stub.c \
normalization-tables.h \
null-gc.c \
number-formatter.h \
*
* Copyright (C) 2005-2009 Novell, Inc. (http://www.novell.com)
*/
+#if defined(__native_client__)
+#include "console-null.c"
+#else
#include <config.h>
#include <glib.h>
return TRUE;
}
+#endif /* #if defined(__native_client__) */
+
--- /dev/null
+
+#if defined(__native_client__)
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#include <eglib/src/glib.h>
+#include <errno.h>
+#include <sys/types.h>
+
+struct group *getgrnam(const char *name) { return NULL; }
+struct group *getgrgid(gid_t gid) { errno=EIO; return NULL; }
+int fsync(int fd) { errno=EINVAL; return -1; }
+dev_t makedev(guint32 maj, guint32 min) { return (maj)*256+(min); }
+
+#endif
#include <mono/metadata/rand.h>
#include <mono/metadata/exception.h>
+#if defined(__native_client__)
+#include <errno.h>
+
+static void
+get_entropy_from_server (const char *path, guchar *buf, int len)
+{
+ return;
+}
+
+#else /* defined(__native_client__) */
+
#if !defined(HOST_WIN32)
#include <sys/socket.h>
#include <sys/un.h>
close (file);
}
#endif
+#endif /* __native_client__ */
#if defined (HOST_WIN32)
#include <config.h>
+#ifndef DISABLE_SOCKETS
+
#include <glib.h>
#include <string.h>
#include <stdlib.h>
WSACleanup();
}
+
+#endif /* #ifndef DISABLE_SOCKETS */