| OLD | NEW |
| 1 diff --git a/Xext/shm.c b/Xext/shm.c | 1 diff --git a/Xext/shm.c b/Xext/shm.c |
| 2 --- a/Xext/shm.c | 2 --- a/Xext/shm.c |
| 3 +++ b/Xext/shm.c | 3 +++ b/Xext/shm.c |
| 4 @@ -33,8 +33,10 @@ in this Software without prior written authorization from The
Open Group. | 4 @@ -33,8 +33,10 @@ in this Software without prior written authorization from The
Open Group. |
| 5 #endif | 5 #endif |
| 6 | 6 |
| 7 #include <sys/types.h> | 7 #include <sys/types.h> |
| 8 +#if !defined(__native_client__) || !defined(_NEWLIB_VERSION) | 8 +#if !defined(__native_client__) || !defined(_NEWLIB_VERSION) |
| 9 #include <sys/ipc.h> | 9 #include <sys/ipc.h> |
| 10 #include <sys/shm.h> | 10 #include <sys/shm.h> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 hw/kdrive/fbdev/Makefile | 68 hw/kdrive/fbdev/Makefile |
| 69 hw/kdrive/linux/Makefile | 69 hw/kdrive/linux/Makefile |
| 70 hw/kdrive/src/Makefile | 70 hw/kdrive/src/Makefile |
| 71 +hw/kdrive/sdl/Makefile | 71 +hw/kdrive/sdl/Makefile |
| 72 test/Makefile | 72 test/Makefile |
| 73 test/xi2/Makefile | 73 test/xi2/Makefile |
| 74 xserver.ent | 74 xserver.ent |
| 75 diff --git a/dix/main.c b/dix/main.c | 75 diff --git a/dix/main.c b/dix/main.c |
| 76 --- a/dix/main.c | 76 --- a/dix/main.c |
| 77 +++ b/dix/main.c | 77 +++ b/dix/main.c |
| 78 @@ -117,6 +117,10 @@ Equipment Corporation. | |
| 79 | |
| 80 extern void Dispatch(void); | |
| 81 | |
| 82 +#if defined(__native_client__) | |
| 83 +# include "nacl_main.h" | |
| 84 +#endif | |
| 85 + | |
| 86 #ifdef XQUARTZ | |
| 87 #include <pthread.h> | |
| 88 | |
| 89 @@ -130,11 +134,24 @@ int | 78 @@ -130,11 +134,24 @@ int |
| 90 dix_main(int argc, char *argv[], char *envp[]) | 79 dix_main(int argc, char *argv[], char *envp[]) |
| 91 #else | 80 #else |
| 92 int | 81 int |
| 93 +# if defined(__native_client__) | 82 +# if defined(__native_client__) |
| 94 +__attribute__ (( visibility("default") )) | 83 +__attribute__ (( visibility("default") )) |
| 95 +main(int argc, char *argv[]) | 84 +main(int argc, char *argv[]) |
| 96 +# else | 85 +# else |
| 97 main(int argc, char *argv[], char *envp[]) | 86 main(int argc, char *argv[], char *envp[]) |
| 98 +# endif | 87 +# endif |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 /* remove the temporary file */ | 338 /* remove the temporary file */ |
| 350 unlink(tmpname); | 339 unlink(tmpname); |
| 351 #endif | 340 #endif |
| 352 } | 341 } |
| 353 else { | 342 else { |
| 354 -#ifndef WIN32 | 343 -#ifndef WIN32 |
| 355 +#if !defined(WIN32) && !defined(__native_client__) | 344 +#if !defined(WIN32) && !defined(__native_client__) |
| 356 LogMessage(X_ERROR, "XKB: Could not invoke xkbcomp\n"); | 345 LogMessage(X_ERROR, "XKB: Could not invoke xkbcomp\n"); |
| 357 #else | 346 #else |
| 358 LogMessage(X_ERROR, "Could not open file %s\n", tmpname); | 347 LogMessage(X_ERROR, "Could not open file %s\n", tmpname); |
| OLD | NEW |