mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix build on Sparc64.
Reported by: kris
This commit is contained in:
parent
4cf4c8f57e
commit
f6b5fd1ffd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=81803
2 changed files with 21 additions and 6 deletions
12
lang/guile/files/patch-libguile___scm.h
Normal file
12
lang/guile/files/patch-libguile___scm.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- libguile/__scm.h.orig Thu May 22 22:07:27 2003
|
||||
+++ libguile/__scm.h Thu May 22 21:03:18 2003
|
||||
@@ -354,7 +354,8 @@
|
||||
* that all the state of the process is contained in the stack.
|
||||
*/
|
||||
|
||||
-#if (defined (sparc) || defined (__sparc__) || defined (__sparc))
|
||||
+#if (defined (sparc) || defined (__sparc__) || defined (__sparc)) && \
|
||||
+ !defined(__FreeBSD__)
|
||||
# define SCM_FLUSH_REGISTER_WINDOWS asm("ta 3")
|
||||
#else
|
||||
# define SCM_FLUSH_REGISTER_WINDOWS /* empty */
|
|
@ -1,18 +1,21 @@
|
|||
--- libguile/gc_os_dep.c.orig Sat May 3 23:15:57 2003
|
||||
+++ libguile/gc_os_dep.c Sat May 3 23:26:25 2003
|
||||
@@ -93,6 +93,11 @@
|
||||
--- libguile/gc_os_dep.c.orig Wed Apr 16 13:16:21 2003
|
||||
+++ libguile/gc_os_dep.c Thu May 22 20:41:37 2003
|
||||
@@ -93,6 +93,14 @@
|
||||
# define OPENBSD
|
||||
# define mach_type_known
|
||||
# endif
|
||||
+# if defined(__FreeBSD__) && defined(__sparc__)
|
||||
+# define SPARC
|
||||
+# define FREEBSD
|
||||
+# include <machine/frame.h>
|
||||
+# define ALIGNMENT 8
|
||||
+# define CPP_WORDSZ 64
|
||||
+# define ALIGN_DOUBLE
|
||||
+# define mach_type_known
|
||||
+# endif
|
||||
# if defined(__NetBSD__) && defined(__powerpc__)
|
||||
# define POWERPC
|
||||
# define NETBSD
|
||||
@@ -225,7 +230,11 @@
|
||||
@@ -225,7 +233,11 @@
|
||||
# define ARM32
|
||||
# define mach_type_known
|
||||
# endif
|
||||
|
@ -25,7 +28,7 @@
|
|||
# define ALPHA
|
||||
# if !defined(LINUX)
|
||||
# define OSF1 /* a.k.a Digital Unix */
|
||||
@@ -1468,7 +1477,7 @@
|
||||
@@ -1468,7 +1480,7 @@
|
||||
# include <setjmp.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue