summaryrefslogtreecommitdiff
path: root/dev-python/psycopg/files/psycopg-2.0.9-round-solaris.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/psycopg/files/psycopg-2.0.9-round-solaris.patch')
-rw-r--r--dev-python/psycopg/files/psycopg-2.0.9-round-solaris.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-python/psycopg/files/psycopg-2.0.9-round-solaris.patch b/dev-python/psycopg/files/psycopg-2.0.9-round-solaris.patch
new file mode 100644
index 00000000000..49d230c3b84
--- /dev/null
+++ b/dev-python/psycopg/files/psycopg-2.0.9-round-solaris.patch
@@ -0,0 +1,13 @@
+round() is available on Solaris
+
+--- psycopg/config.h
++++ psycopg/config.h
+@@ -102,7 +102,7 @@
+ #define inline
+ #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__))
+ /* what's this, we have no round function either? */
+ static double round(double num)
+ {