1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/lang/xds-c/files/patch-C__X2C.c
Alejandro Pulver 2f1a90e0ca This is XDS-C for Linux, it is setup to produce native FreeBSD binaries.
WWW: http://www.excelsior-usa.com/

PR:		ports/108499
Submitted by:	coumarin at gmail.com
2007-02-17 03:33:42 +00:00

12 lines
469 B
C

--- C/X2C.c.orig 2001-09-25 07:56:48.000000000 +0000
+++ C/X2C.c 2007-01-24 15:29:52.000000000 +0000
@@ -700,7 +700,7 @@
iprocs[3]=iproc3;
iprocs_cnt=4;
-#if defined(__linux__) && defined(__i386__) && defined(X2C_native_library)
+#if (defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__)) && defined(__i386__) && defined(X2C_native_library)
stk_up = 0;
ss_offs = -1;
sp_offs = (int) &((*(X2C_jmp_buf*)(0))[0].esp) / 4;