its-pointless
7 years ago
committed by
Fredrik Fornwall
5 changed files with 66 additions and 62 deletions
@ -0,0 +1,10 @@ |
|||||
|
--- ../cache/racket-6.11/src/racket/gc2/newgc.c 2017-07-07 19:13:22.000000000 +0000
|
||||
|
+++ ./src/racket/gc2/newgc.c 2018-01-05 05:55:28.900376813 +0000
|
||||
|
@@ -10,6 +10,7 @@
|
||||
|
#include <stdio.h> |
||||
|
#include <string.h> |
||||
|
#include <errno.h> |
||||
|
+#include <strings.h>
|
||||
|
#include "platforms.h" |
||||
|
#include "../src/schpriv.h" |
||||
|
#include "gc2.h" |
@ -1,36 +0,0 @@ |
|||||
"The getdtablesize functions has been deprecated by Posix and has been |
|
||||
removed from Android's LB64 ABI. Replace calls to it with the modern |
|
||||
equivalent sysconf(_SC_OPEN_MAX)." |
|
||||
|
|
||||
- https://groups.google.com/a/chromium.org/forum/#!topic/chromium-reviews/AXhZapYuHi8
|
|
||||
|
|
||||
diff -u -r ../../racket-6.4/src/racket/src/port.c ./racket/src/src/port.c
|
|
||||
--- ../../racket-6.4/src/racket/src/port.c 2016-01-14 12:11:20.000000000 -0500
|
|
||||
+++ ./src/racket/src/port.c 2016-04-10 17:43:40.039414493 -0400
|
|
||||
@@ -1090,7 +1090,7 @@
|
|
||||
# ifdef USE_ULIMIT |
|
||||
dynamic_fd_size = ulimit(4, 0); |
|
||||
# else |
|
||||
- dynamic_fd_size = getdtablesize();
|
|
||||
+ dynamic_fd_size = sysconf(_SC_OPEN_MAX);
|
|
||||
# endif |
|
||||
/* divide by bits-per-byte: */ |
|
||||
dynamic_fd_size = (dynamic_fd_size + 7) >> 3; |
|
||||
@@ -1365,7 +1365,7 @@
|
|
||||
# ifdef FIXED_FD_LIMIT |
|
||||
limit = FIXED_FD_LIMIT; |
|
||||
# else |
|
||||
- limit = getdtablesize();
|
|
||||
+ limit = sysconf(_SC_OPEN_MAX);
|
|
||||
# endif |
|
||||
# endif |
|
||||
# endif |
|
||||
@@ -10390,7 +10390,7 @@
|
|
||||
# ifdef USE_ULIMIT |
|
||||
i = ulimit(4, 0); |
|
||||
# else |
|
||||
- i = getdtablesize();
|
|
||||
+ i = sysconf(_SC_OPEN_MAX);
|
|
||||
# endif |
|
||||
while (i--) { |
|
||||
int cr; |
|
@ -0,0 +1,18 @@ |
|||||
|
--- ../cache/racket-6.12/src/rktio/rktio_dll.c 2017-10-12 18:23:27.000000000 +0000
|
||||
|
+++ ./src/rktio/rktio_dll.c 2018-03-18 01:22:17.345952252 +0000
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
#include "rktio.h" |
||||
|
#include "rktio_private.h" |
||||
|
+#include "scheme.h"
|
||||
|
#include <stdlib.h> |
||||
|
#include <string.h> |
||||
|
|
||||
|
@@ -63,7 +64,7 @@
|
||||
|
return dll; |
||||
|
|
||||
|
#ifdef RKTIO_SYSTEM_UNIX |
||||
|
-# if defined(__ANDROID__)
|
||||
|
+# if defined(__ANDROID__) && !defined(__x86_64__) && !defined(__aarch64__)
|
||||
|
if (!name) handle = RTLD_DEFAULT; else |
||||
|
# elif defined(__CYGWIN32__) |
||||
|
if (!name) { handle = RTLD_DEFAULT; null_ok = 1; } else |
@ -0,0 +1,32 @@ |
|||||
|
--- ../cache/racket-6.12/src/racket/sconfig.h 2017-10-12 18:23:27.000000000 +0000
|
||||
|
+++ ./src/racket/sconfig.h 2018-02-07 01:18:13.911569478 +0000
|
||||
|
@@ -124,10 +124,12 @@
|
||||
|
# endif |
||||
|
# if defined(__x86_64__) |
||||
|
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "x86_64-"SPLS_LINUX |
||||
|
# define REGISTER_POOR_MACHINE |
||||
|
# define ASM_DBLPREC_CONTROL_87 |
||||
|
+#ifndef __ANDROID__
|
||||
|
# define MZ_TRY_EXTFLONUMS |
||||
|
# endif |
||||
|
+# endif
|
||||
|
# ifndef SCHEME_PLATFORM_LIBRARY_SUBPATH |
||||
|
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "unknown-"SPLS_LINUX |
||||
|
# endif |
||||
|
@@ -147,12 +149,16 @@
|
||||
|
#if defined(__i386__) |
||||
|
# define MZ_USE_JIT_I386 |
||||
|
# define MZ_JIT_USE_MPROTECT |
||||
|
+#ifndef __ANDROID__
|
||||
|
# define MZ_USE_DWARF_LIBUNWIND |
||||
|
#endif |
||||
|
+#endif
|
||||
|
#if defined(__x86_64__) |
||||
|
# define MZ_USE_JIT_X86_64 |
||||
|
# define MZ_JIT_USE_MPROTECT |
||||
|
+#ifndef __ANDROID__
|
||||
|
# define MZ_USE_DWARF_LIBUNWIND |
||||
|
+#endif
|
||||
|
#endif |
||||
|
#if defined(__powerpc__) && !defined(__powerpc64__) |
||||
|
# define MZ_USE_JIT_PPC |
Loading…
Reference in new issue