| OLD | NEW |
| 1 diff --git a/configure b/configure | 1 diff --git a/configure b/configure |
| 2 --- a/configure | 2 --- a/configure |
| 3 +++ b/configure | 3 +++ b/configure |
| 4 @@ -7563,7 +7563,6 @@ $as_echo "$gl_cv_cc_uninitialized_supported" >&6; } | 4 @@ -7563,7 +7563,6 @@ $as_echo "$gl_cv_cc_uninitialized_supported" >&6; } |
| 5 -Wattributes \ | 5 -Wattributes \ |
| 6 -Wbad-function-cast \ | 6 -Wbad-function-cast \ |
| 7 -Wbuiltin-macro-redefined \ | 7 -Wbuiltin-macro-redefined \ |
| 8 - -Wcast-align \ | 8 - -Wcast-align \ |
| 9 -Wchar-subscripts \ | 9 -Wchar-subscripts \ |
| 10 -Wclobbered \ | 10 -Wclobbered \ |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 { "os2", "__os2__", "" }, | 175 { "os2", "__os2__", "" }, |
| 176 #endif | 176 #endif |
| 177 -#if !UNIX && !W32_NATIVE && !OS2 | 177 -#if !UNIX && !W32_NATIVE && !OS2 |
| 178 +#if !UNIX && !W32_NATIVE && !OS2 && !defined(__native_client__) | 178 +#if !UNIX && !W32_NATIVE && !OS2 && !defined(__native_client__) |
| 179 # warning Platform macro not provided | 179 # warning Platform macro not provided |
| 180 #endif | 180 #endif |
| 181 { NULL, "__gnu__", "" }, | 181 { NULL, "__gnu__", "" }, |
| 182 diff --git a/src/m4.c b/src/m4.c | 182 diff --git a/src/m4.c b/src/m4.c |
| 183 --- a/src/m4.c | 183 --- a/src/m4.c |
| 184 +++ b/src/m4.c | 184 +++ b/src/m4.c |
| 185 @@ -362,7 +362,11 @@ process_file (const char *name) | |
| 186 #endif | |
| 187 | |
| 188 int | |
| 189 +#if defined(__native_client__) | |
| 190 +nacl_main (int argc, const char *argv[]) | |
| 191 +#else | |
| 192 main (int argc, char *const *argv) | |
| 193 +#endif | |
| 194 { | |
| 195 struct sigaction act; | |
| 196 macro_definition *head; /* head of deferred argument list */ | |
| 197 @@ -403,7 +407,11 @@ main (int argc, char *const *argv) | 185 @@ -403,7 +407,11 @@ main (int argc, char *const *argv) |
| 198 sigemptyset (&act.sa_mask); | 186 sigemptyset (&act.sa_mask); |
| 199 /* One-shot - if we fault while handling a fault, we want to revert | 187 /* One-shot - if we fault while handling a fault, we want to revert |
| 200 to default signal behavior. */ | 188 to default signal behavior. */ |
| 201 +#if defined(__native_client__) && defined(_NEWLIB_VERSION) | 189 +#if defined(__native_client__) && defined(_NEWLIB_VERSION) |
| 202 + act.sa_flags = SA_NODEFER; | 190 + act.sa_flags = SA_NODEFER; |
| 203 +#else | 191 +#else |
| 204 act.sa_flags = SA_NODEFER | SA_RESETHAND; | 192 act.sa_flags = SA_NODEFER | SA_RESETHAND; |
| 205 +#endif | 193 +#endif |
| 206 act.sa_handler = fault_handler; | 194 act.sa_handler = fault_handler; |
| 207 sigaction (SIGSEGV, &act, NULL); | 195 sigaction (SIGSEGV, &act, NULL); |
| 208 sigaction (SIGABRT, &act, NULL); | 196 sigaction (SIGABRT, &act, NULL); |
| OLD | NEW |