| Index: ports/gambc/nacl.patch
|
| diff --git a/ports/gambc/nacl.patch b/ports/gambc/nacl.patch
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..28eb3d4f8aad1f47f7129bdfe9c1fa50869ae543
|
| --- /dev/null
|
| +++ b/ports/gambc/nacl.patch
|
| @@ -0,0 +1,42 @@
|
| +diff --git a/lib/os.c b/lib/os.c
|
| +index 24991b2..7102dda 100644
|
| +--- a/lib/os.c
|
| ++++ b/lib/os.c
|
| +@@ -378,8 +378,8 @@ ___SIZE_TS *majflt;)
|
| +
|
| + if (getrusage (RUSAGE_SELF, &ru) == 0)
|
| + {
|
| +- *minflt = ru.ru_minflt;
|
| +- *majflt = ru.ru_majflt;
|
| ++ *minflt = 0; // ru.ru_minflt;
|
| ++ *majflt = 0; // ru.ru_majflt;
|
| + }
|
| + else
|
| + {
|
| +diff --git a/lib/os_tty.c b/lib/os_tty.c
|
| +index 69c7784..2386f76 100644
|
| +--- a/lib/os_tty.c
|
| ++++ b/lib/os_tty.c
|
| +@@ -7157,7 +7157,7 @@ ___HIDDEN ___SCMOBJ lineeditor_process_events
|
| + (self)
|
| + ___device_tty *self;)
|
| + {
|
| +-#define AGGREGATION_BUFFER_SIZE (80*50)
|
| ++#define AGGREGATION_BUFFER_SIZE 1
|
| +
|
| + ___device_tty *d = self;
|
| + ___SCMOBJ e1;
|
| +diff --git a/include/gambit.h.in b/include/gambit.h.in
|
| +index 4c44a1e..99aefb9 100644
|
| +--- a/include/gambit.h.in
|
| ++++ b/include/gambit.h.in
|
| +@@ -1304,7 +1304,7 @@
|
| +
|
| + #include <setjmp.h>
|
| +
|
| +-#ifdef setjmp
|
| ++#if defined(setjmp) || (defined(__native_client__) && defined(__clang__))
|
| + #undef ___CAN_IMPORT_SETJMP_DYNAMICALLY
|
| + #define ___CAN_IMPORT_SETJMP_DYNAMICALLY
|
| + #endif
|
| +
|
|
|