diff --git a/src/system/libroot/posix/arch/x86/fenv.c b/src/system/libroot/posix/arch/x86/fenv.c index b0c657b653..1884bc1444 100644 --- a/src/system/libroot/posix/arch/x86/fenv.c +++ b/src/system/libroot/posix/arch/x86/fenv.c @@ -207,5 +207,5 @@ __fedisableexcept(int mask) return (~omask); } -__weak_reference(__feenableexcept, feenableexcept); -__weak_reference(__fedisableexcept, fedisableexcept); +int feenableexcept(int) __attribute__((weak, alias("__feenableexcept"))); +int fedisableexcept(int) __attribute__((weak, alias("__fedisableexcept"))); diff --git a/src/system/libroot/posix/glibc/arch/generic/w_dremf.c b/src/system/libroot/posix/glibc/arch/generic/w_dremf.c index b740ea304c..e040d986db 100644 --- a/src/system/libroot/posix/glibc/arch/generic/w_dremf.c +++ b/src/system/libroot/posix/glibc/arch/generic/w_dremf.c @@ -9,9 +9,9 @@ #include "math_private.h" float -__dremf(x, y) - float x, y; +__dremf(float x, float y) { return __remainderf(x, y); } -weak_alias (__dremf, dremf) + +float dremf(float, float) __attribute__((weak, alias("__dremf")));