diff options
Diffstat (limited to 'databases/py-psycopg2/patches/patch-psycopg_config.h')
-rw-r--r-- | databases/py-psycopg2/patches/patch-psycopg_config.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/py-psycopg2/patches/patch-psycopg_config.h b/databases/py-psycopg2/patches/patch-psycopg_config.h new file mode 100644 index 00000000000..3e9e28b0a35 --- /dev/null +++ b/databases/py-psycopg2/patches/patch-psycopg_config.h @@ -0,0 +1,14 @@ +$NetBSD: patch-psycopg_config.h,v 1.1 2012/03/12 11:52:28 fhajny Exp $ + +double defined on SunOS with GCC. +--- psycopg/config.h.orig 2011-06-08 07:42:46.000000000 +0000 ++++ psycopg/config.h +@@ -141,7 +141,7 @@ static int pthread_mutex_init(pthread_mu + #endif + #endif + +-#if (defined(__FreeBSD__) && __FreeBSD_version < 503000) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) || defined(sun) ++#if (defined(__FreeBSD__) && __FreeBSD_version < 503000) || (defined(_WIN32) && !defined(__GNUC__)) || ((defined(__sun__) || defined(sun)) && !defined(__GNUC__)) + /* what's this, we have no round function either? */ + static double round(double num) + { |