0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-25 17:12:28 +00:00
Files
packages/lang/perl/patches/020-gcc14.patch
Rosen Penev ea8e6fbf33 perl: fix compilation with GCC14
Need the header for fegetround.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-08 17:47:24 -07:00

24 lines
538 B
Diff

--- 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