$NetBSD: patch-ext_standard_basic__functions.c,v 1.1 2012/06/16 05:21:55 taca Exp $ Work around VAX FP lack of INF --- ext/standard/basic_functions.c.orig 2012-05-08 05:22:56.000000000 +0000 +++ ext/standard/basic_functions.c @@ -3498,7 +3498,7 @@ PHPAPI double php_get_nan(void) /* {{{ * PHPAPI double php_get_inf(void) /* {{{ */ { -#if HAVE_HUGE_VAL_INF +#if defined(HAVE_HUGE_VAL_INF) || defined(__vax__) return HUGE_VAL; #elif defined(__i386__) || defined(_X86_) || defined(ALPHA) || defined(_ALPHA) || defined(__alpha) double val = 0.0;