1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/lang/wamcc/files/patch-af

49 lines
1.5 KiB
Plaintext
Raw Normal View History

--- src/machine.h.orig Mon Oct 23 10:59:26 1995
+++ src/machine.h Tue Sep 14 04:13:45 1999
@@ -33,6 +33,16 @@
# define M_MACHINE "dec_alpha"
# define M_dec_alpha
+# elif defined(__FreeBSD__) && defined(i386)
+
+ #define M_MACHINE "i386_freebsd"
+ #define M_i386_freebsd
+
+# elif defined(__FreeBSD__) && defined(alpha)
+
+ #define M_MACHINE "alpha_freebsd"
+ #define M_alpha_freebsd
+
# elif defined(__linux__) && !defined(__ELF__)
# define M_MACHINE "pc_linux_a_out"
@@ -101,7 +111,8 @@
/*---------------------------------*/
#if defined(M_sony_news) || defined(M_dec_ultrix) || defined(M_dec_alpha) ||\
- defined(M_pc_linux_elf)
+ defined(M_pc_linux_elf) || defined(M_i386_freebsd) ||\
+ defined(M_alpha_freebsd)
# define M_Asm_Symbol1(name) #name
# define M_Asm_Symbol(name) M_Asm_Symbol1(name)
@@ -122,7 +133,8 @@
#if defined(M_sparc) || defined(M_dec_ultrix) || defined(M_sony_news) || \
- defined(M_NeXT_hppa) || defined(M_dec_alpha)
+ defined(M_NeXT_hppa) || defined(M_dec_alpha) || defined(M_i386_freebsd) ||\
+ defined(M_alpha_freebsd)
# define M_Save_Control_Info
# define M_Restore_Control_Info
@@ -145,7 +157,7 @@
#if defined(M_sparc) || defined(M_dec_ultrix) || defined(M_sony_news) || \
- defined(M_NeXT_hppa)
+ defined(M_NeXT_hppa) || defined(M_i386_freebsd) || defined(M_alpha_freebsd)
# define M_Direct_Goto(lab) {lab(); return;}
# define M_Indirect_Goto(p_lab) {(* ((void (*)()) p_lab))();return;}