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,20 @@
$NetBSD: patch-src_get.c,v 1.2 2012/08/05 18:24:56 marino Exp $
Work around bug in SunOS complex.h to make this build with Sun's gcc
--- src/get_x.c.orig 2011-11-04 18:20:19.000000000 +0000
+++ src/get_x.c
@@ -35,6 +35,13 @@ along with this program. If not, see htt
#include "mpc-impl.h"
#ifdef HAVE_COMPLEX_H
+
+#if defined(__sun) && defined(__GNUC__) && defined(_Imaginary_I)
+#undef I
+#define I (__extension__ 1.0iF)
+
+#endif
+
double _Complex
mpc_get_dc (mpc_srcptr op, mpc_rnd_t rnd) {
return I * mpfr_get_d (mpc_imagref (op), MPC_RND_IM (rnd))