math/R: Expand NetBSD floorl patch to DragonFly

DragonFly has the same math limitations as NetBSD, so it needs the same fix.
This commit is contained in:
marino 2011-12-18 02:50:07 +00:00
parent a76fd1eaa8
commit a7d93cac81
2 changed files with 5 additions and 5 deletions

View file

@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.45 2011/11/20 04:57:03 markd Exp $
$NetBSD: distinfo,v 1.46 2011/12/18 02:50:07 marino Exp $
SHA1 (R-2.14.0.tar.gz) = 0f46bf75a7c150350b1142c29a98e7994d2b4bef
RMD160 (R-2.14.0.tar.gz) = f2f2805c8660d58050be1d11abf376843dbb40ea
Size (R-2.14.0.tar.gz) = 22675106 bytes
SHA1 (patch-ac) = ea885d8391ec06a7cc7fcbbadce134c794b7a47c
SHA1 (patch-ad) = 43ae23bd0815986c3bac661bd3354cd96b3e54e4
SHA1 (patch-src_main_format.c) = 79bd8eb005412359b07b6e1195c1f9d1f00ac008
SHA1 (patch-src_main_format.c) = f337358361cd81547305d61be4682c4f73b6531a

View file

@ -1,7 +1,7 @@
$NetBSD: patch-src_main_format.c,v 1.1 2011/11/20 04:57:03 markd Exp $
$NetBSD: patch-src_main_format.c,v 1.2 2011/12/18 02:50:08 marino Exp $
NetBSD does not have rintl() or floorl() so use the OpenBSD implementation
of rintl() in that case.
of rintl() in that case. The same case exists for DragonFly.
--- src/main/format.c.orig 2011-10-02 22:02:34.000000000 +0000
+++ src/main/format.c
@ -9,7 +9,7 @@ of rintl() in that case.
# define R_nearbyintl rintl
# else
# define R_nearbyintl private_nearbyintl
+# ifndef __NetBSD__
+# if !defined(__NetBSD__) && !defined(__DragonFly__)
long double private_nearbyintl(long double x)
{
long double x1;