pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/php71 Fix the macro tests for fpclassify(3) funct...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ac9d60cac9f5
branches: trunk
changeset: 360114:ac9d60cac9f5
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Thu Mar 23 09:33:02 2017 +0000
description:
Fix the macro tests for fpclassify(3) functions. Fixes PR#52104.
diffstat:
lang/php71/distinfo | 3 +-
lang/php71/patches/patch-main_php__config.h.in | 33 ++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 1 deletions(-)
diffs (54 lines):
diff -r 5c9436749df4 -r ac9d60cac9f5 lang/php71/distinfo
--- a/lang/php71/distinfo Thu Mar 23 09:08:21 2017 +0000
+++ b/lang/php71/distinfo Thu Mar 23 09:33:02 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2017/03/17 15:35:14 taca Exp $
+$NetBSD: distinfo,v 1.16 2017/03/23 09:33:02 jperkin Exp $
SHA1 (php-7.1.3.tar.bz2) = 60359b3154d00502f84adfea84d008e3aa0b81ab
RMD160 (php-7.1.3.tar.bz2) = a54b805e234a8bf7f1f6a1c0b2250e11bcaf1219
@@ -17,6 +17,7 @@
SHA1 (patch-ext_recode_recode.c) = a97a1815d6a41410f68c289debbb9396128a2159
SHA1 (patch-ext_sqlite3_libsqlite_sqlite3.c) = 8a529a1b3f7c97731f2e719d006f67c3a7259bb5
SHA1 (patch-ext_standard_basic__functions.c) = f97a2748c7b15fbd9a2d3c21e56079088cc05d56
+SHA1 (patch-main_php__config.h.in) = a954c2963bdc9cbb280a9852e18ac8fb8fc834c2
SHA1 (patch-makedist) = 2ac0e0391c031c4fcf4993e2269cde4c6bfddfd5
SHA1 (patch-php.ini-development) = dd65962000ec06439fae3c9bf252fa46be4e33fd
SHA1 (patch-php.ini-production) = ae61dffedf574b688fe576b0b2af748b7a28cd89
diff -r 5c9436749df4 -r ac9d60cac9f5 lang/php71/patches/patch-main_php__config.h.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php71/patches/patch-main_php__config.h.in Thu Mar 23 09:33:02 2017 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-main_php__config.h.in,v 1.1 2017/03/23 09:33:02 jperkin Exp $
+
+Fix tests for defines which are 0/1 not defined/undefined.
+
+--- main/php_config.h.in.orig 2017-03-14 13:17:50.000000000 +0000
++++ main/php_config.h.in
+@@ -2515,7 +2515,7 @@ int zend_sprintf(char *buffer, const cha
+ #endif
+
+ #ifndef zend_isnan
+-#ifdef HAVE_DECL_ISNAN
++#if HAVE_DECL_ISNAN == 1
+ #define zend_isnan(a) isnan(a)
+ #elif defined(HAVE_FPCLASS)
+ #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
+@@ -2524,7 +2524,7 @@ int zend_sprintf(char *buffer, const cha
+ #endif
+ #endif
+
+-#ifdef HAVE_DECL_ISINF
++#if HAVE_DECL_ISINF == 1
+ #define zend_isinf(a) isinf(a)
+ #elif defined(INFINITY)
+ /* Might not work, but is required by ISO C99 */
+@@ -2535,7 +2535,7 @@ int zend_sprintf(char *buffer, const cha
+ #define zend_isinf(a) 0
+ #endif
+
+-#if defined(HAVE_DECL_ISFINITE)
++#if HAVE_DECL_ISFINITE == 1
+ #define zend_finite(a) isfinite(a)
+ #elif defined(HAVE_FINITE)
+ #define zend_finite(a) finite(a)
Home |
Main Index |
Thread Index |
Old Index