Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-libsrc_Wi_numeric.c,v 1.1 2013/04/13 13:16:02 jaapb Exp $
Do not use non-existing function
--- libsrc/Wi/numeric.c.orig 2012-03-23 12:28:31.000000000 +0000
+++ libsrc/Wi/numeric.c
@@ -1841,7 +1841,7 @@ numeric_from_double (numeric_t n, double
{
char buffer[64];
-#if defined (bsdi) || defined (__FreeBSD__) || defined (__APPLE__)
+#if defined (bsdi) || defined (__FreeBSD__) || defined (__APPLE__) || defined(__NetBSD__)
snprintf (buffer, sizeof (buffer), "%.16g", d);
#else
gcvt (d, 16, buffer);