-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- configure.orig 2014-06-03 20:08:54 UTC | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
laffer1
Author
Member
|
||
+++ configure | ||
@@ -15639,6 +15639,9 @@ else | ||
fi | ||
|
||
case "${host}" in | ||
+ *-freebsd*|*-midnightbsd*) | ||
+ gc_use_mmap=yes | ||
+ ;; | ||
*-linux*) | ||
# FIXME: This seems to be no longer needed as configured in gcconfig.h | ||
#gc_use_mmap=yes |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- include/gc_pthread_redirects.h.orig 2018-12-23 21:28:41 UTC | ||
+++ include/gc_pthread_redirects.h | ||
@@ -53,12 +53,8 @@ | ||
# endif /* !GC_NO_DLOPEN */ | ||
|
||
# ifndef GC_NO_PTHREAD_SIGMASK | ||
-# if defined(GC_PTHREAD_SIGMASK_NEEDED) \ | ||
This comment has been minimized.
Sorry, something went wrong.
ivmai
Contributor
|
||
- || defined(_BSD_SOURCE) || defined(_GNU_SOURCE) \ | ||
- || (_POSIX_C_SOURCE >= 199506L) || (_XOPEN_SOURCE >= 500) | ||
GC_API int GC_pthread_sigmask(int /* how */, const sigset_t *, | ||
sigset_t * /* oset */); | ||
-# endif | ||
# endif /* !GC_NO_PTHREAD_SIGMASK */ | ||
|
||
# ifndef GC_PTHREAD_CREATE_CONST |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- include/private/gcconfig.h.orig 2020-11-21 06:02:51 UTC | ||
+++ include/private/gcconfig.h | ||
@@ -239,7 +239,7 @@ EXTERN_C_BEGIN | ||
# define EWS4800 | ||
# endif | ||
# if !defined(LINUX) && !defined(EWS4800) && !defined(NETBSD) \ | ||
- && !defined(OPENBSD) | ||
+ && !defined(OPENBSD) && !defined(FREEBSD) | ||
# if defined(ultrix) || defined(__ultrix) | ||
# define ULTRIX | ||
# else | ||
@@ -670,7 +670,7 @@ EXTERN_C_BEGIN | ||
# endif | ||
# define mach_type_known | ||
# endif | ||
-# if defined(__riscv) && defined(LINUX) | ||
+# if defined(__riscv) | ||
# define RISCV | ||
# define mach_type_known | ||
# endif | ||
@@ -2883,6 +2883,19 @@ EXTERN_C_BEGIN | ||
# define DATASTART ((ptr_t)__data_start) | ||
# define LINUX_STACKBOTTOM | ||
# define DYNAMIC_LOADING | ||
+# endif | ||
+# ifdef FREEBSD | ||
+# define OS_TYPE "FREEBSD" | ||
+# ifndef GC_FREEBSD_THREADS | ||
+# define MPROTECT_VDB | ||
+# endif | ||
+# define SIG_SUSPEND SIGUSR1 | ||
+# define SIG_THR_RESTART SIGUSR2 | ||
+# define FREEBSD_STACKBOTTOM | ||
+# define DYNAMIC_LOADING | ||
+ extern char etext[]; | ||
+# define DATASTART GC_FreeBSDGetDataStart(0x1000, (ptr_t)etext) | ||
+# define DATASTART_USES_BSDGETDATASTART | ||
# endif | ||
# endif /* RISCV */ | ||
|
@laffer1, why is this patch needed? USE_MMAP is defined by default in v8.0.0+