Skip to content

Commit

Permalink
Merge pull request #2 from zheka/master
Browse files Browse the repository at this point in the history
the hack is rather temporary esp in mono/io-layer/shared.c, to be investigated further
  • Loading branch information
pasko committed Oct 25, 2011
2 parents edad8f9 + 4ccdf44 commit 8a1f7ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mono/io-layer/shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <string.h>
#include <unistd.h>

#ifdef HAVE_SYS_SEM_H
#if defined(HAVE_SYS_SEM_H) && !(defined(__native_client__) && defined(__GLIBC__))
# include <sys/sem.h>
#else
# define DISABLE_SHARED_HANDLES
Expand Down
2 changes: 1 addition & 1 deletion mono/mini/wapihandles.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "mini.h"

#if defined(HOST_WIN32) || !defined(HAVE_SYS_IPC_H) || !defined(HAVE_SYS_SEM_H)
#if defined(HOST_WIN32) || !defined(HAVE_SYS_IPC_H) || !defined(HAVE_SYS_SEM_H) || (defined(__native_client__) && defined(__GLIBC__))

int mini_wapi_hps (int argc, char **argv)
{
Expand Down
6 changes: 6 additions & 0 deletions mono/utils/mono-dl.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,12 @@ mono_dl_open (const char *name, int flags, char **error_msg)
MonoDlFallbackHandler *dl_fallback = NULL;
int lflags = LL_SO_TRFLAGS (flags);

#if defined(__native_client__) && defined(__GLIBC__)
if (error_msg)
*error_msg = g_strdup ("No mono_dl_open for NaCl");
return NULL;
#endif

if (error_msg)
*error_msg = NULL;

Expand Down

0 comments on commit 8a1f7ae

Please sign in to comment.