Browse Source

Merge pull request #7204 from dedeckeh/pr-perl-glibc

perl: fix compilation with glibc 2.27
lilik-openwrt-22.03
Philip Prindeville 6 years ago
committed by GitHub
parent
commit
f81bf02f16
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lang/perl/patches/010-musl-compat.patch

+ 2
- 2
lang/perl/patches/010-musl-compat.patch View File

@ -1,11 +1,11 @@
--- a/perl.c
+++ b/perl.c
@@ -286,7 +286,7 @@ perl_construct(pTHXx)
@@ -303,7 +303,7 @@ perl_construct(pTHXx)
PL_localpatches = local_patches; /* For possible -v */
#endif
-#if defined(LIBM_LIB_VERSION)
+#if defined(LIBM_LIB_VERSION) && (defined(__GLIBC__) || defined(__UCLIBC__))
+#if defined(LIBM_LIB_VERSION) && defined(__UCLIBC__)
/*
* Some BSDs and Cygwin default to POSIX math instead of IEEE.
* This switches them over to IEEE.

Loading…
Cancel
Save