perl: fix compilation with GCC14

Need the header for fegetround.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2024-06-08 17:00:32 -07:00
parent b82a70dd19
commit ea8e6fbf33
2 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ include perlver.mk
PKG_NAME:=perl
PKG_VERSION:=$(PERL_VERSION)
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE_URL:=https://www.cpan.org/src/5.0
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+23
View File
@@ -0,0 +1,23 @@
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -28,11 +28,7 @@ static int not_here(const char *s);
#include <sys/errno2.h>
#endif
#include <float.h>
-#ifdef I_FENV
-#if !(defined(__vax__) && defined(__NetBSD__))
#include <fenv.h>
-#endif
-#endif
#include <limits.h>
#include <locale.h>
#include <math.h>
@@ -182,7 +178,7 @@ static int not_here(const char *s);
#endif
/* We will have an emulation. */
-#ifndef FE_TONEAREST
+#ifndef FE_TOWARDZERO
# define FE_TOWARDZERO 0
# define FE_TONEAREST 1
# define FE_UPWARD 2