The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#include "mconf.h"
/* Patch NaN function where no system NaN is available */
double quiet_nan(void)
{
#ifdef NaN
  double a;
  return NaN(a);
#else
  double a=0;
  return 0./a; /* Expect bad value error */
#endif
}