Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Unified Diff: ports/gambc/nacl.patch

Issue 150413008: Initial support for gambit-scheme v4.7.0 Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Add support for pnacl Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/gambc/gambc-v4_7_0.sha1 ('k') | ports/gambc/pkg_info » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+
« no previous file with comments | « ports/gambc/gambc-v4_7_0.sha1 ('k') | ports/gambc/pkg_info » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698