jamvm: Use <fenv.h> instead of <fpu_control.h>
authorGuo Li <uxgood.org@gmail.com>
Sun, 2 Sep 2018 10:27:59 +0000 (18:27 +0800)
committerRosen Penev <rosenp@gmail.com>
Sat, 25 Jan 2020 05:58:03 +0000 (21:58 -0800)
commite480e046e36313d44a74b500b8befec69aa563cd
tree0bf236516ee6f3e9594ebd27129d8c048cd3f0bb
parent3c3ba4e044382f60a792c409de67b154cf0c55d3
jamvm: Use <fenv.h> instead of <fpu_control.h>

musl libc (http://musl-libc.org lack the non-standard <fpu_control.h>
header, which is used in src/os/linux/{i386,x86_64}/init.c files to
setup the floating point precision. This patch makes it use the
standard C <fenv.h> header instead.

Original patch at Felix Janda at
https://sourceforge.net/p/jamvm/patches/6/

Signed-off-by: Guo Li <uxgood.org@gmail.com>
(cherry-picked from 2f96d96aff521f59b192b01971dc669028252f22)
lang/jamvm/Makefile
lang/jamvm/patches/001-Use-fenv.h-instead-of-fpu_control.h.patch [new file with mode: 0644]