patches/mpc/0.8.1/100-fix-build-with-mpfr-3_0_9.diff
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Aug 02 18:28:10 2011 +0200 (2011-08-02)
changeset 2590 b64cfb67944e
permissions -rw-r--r--
scripts/functions: svn retrieval first tries the mirror for tarballs

The svn download helper looks for the local tarballs dir to see if it
can find a pre-downloaded tarball, and if it does not find it, does
the actual fetch to upstream via svn.

In the process, it does not even try to get a tarball from the local
mirror, which can be useful if the mirror has been pre-populated
manually (or with a previously downloaded tree).

Fake a tarball get with the standard tarball-download helper, but
without specifying any upstream URL, which makes the helper directly
try the LAN mirror.

Of course, if no mirror is specified, no URL wil be available, and
the standard svn retrieval will kick in.

Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
lacombar@2069
     1
--- trunk/src/acos.c	2009/12/08 16:49:43	733
lacombar@2069
     2
+++ trunk/src/acos.c	2009/12/09 20:51:38	734
lacombar@2069
     3
@@ -188,10 +188,7 @@
lacombar@2069
     4
   else
lacombar@2069
     5
     rnd_im = rnd_im == GMP_RNDU ? GMP_RNDD
lacombar@2069
     6
       : rnd_im == GMP_RNDD ? GMP_RNDU
lacombar@2069
     7
-#if MPFR_VERSION_MAJOR >= 3
lacombar@2069
     8
-      : rnd_im == GMP_RNDA ? GMP_RNDZ
lacombar@2069
     9
-#endif
lacombar@2069
    10
-      : rnd_im;
lacombar@2069
    11
+      : rnd_im; /* both RNDZ and RNDA map to themselves for -asin(z) */
lacombar@2069
    12
   rnd1 = RNDC(GMP_RNDN, rnd_im);
lacombar@2069
    13
   mpfr_init2 (pi_over_2, p);
lacombar@2069
    14
   for (;;)