freebsd-ports/lang/squeak/files/patch-unix_vm_sqUnixMain.c
Fernando Apesteguía e08da5800e lang/squeak: Fix build in 14.0-current
The lang/squeak ports assume B576000 and B1152000.
Lack of B576000 and B1152000 at /usr/include/sys/_termios.h, lang/squeak is
broken at 14.0-Current.

While here, add missing USES, dependencies, reorder variables, etc.

PR:	254456
Submitted by:	takeshi.mutoh@gmail.com (maintainer)
2021-03-26 19:40:36 +00:00

13 lines
425 B
C

--- unix/vm/sqUnixMain.c.orig 2012-09-17 01:03:14 UTC
+++ unix/vm/sqUnixMain.c
@@ -1334,8 +1334,8 @@ void imgInit(void)
|| defined(POWERPC) || defined(__POWERPC) || defined (__POWERPC__) )
void mtfsfi(unsigned long long fpscr)
{
- __asm__("lfd f0, %0" :: "m"(fpscr));
- __asm__("mtfsf 0xff, f0");
+ __asm__("lfd 0, %0" :: "m"(fpscr));
+ __asm__("mtfsf 0xff, 0");
}
#else
# define mtfsfi(fpscr)