summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2008-05-05 15:55:51 +0200
committerFederico Di Gregorio <fog@initd.org>2008-05-05 15:55:51 +0200
commit0319bc8cc457c7a24dbbeb46548ef4202dce6617 (patch)
treea2f382ca0d8e861b0d58e1d7d91adcdc1f86f9e3
parent975d2286e85fa54d8fcd686c1b1b6e8f2a124b89 (diff)
downloadpsycopg2-0319bc8cc457c7a24dbbeb46548ef4202dce6617.tar.gz
Fixed build error on SUN
-rw-r--r--ChangeLog4
-rw-r--r--psycopg/config.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f88d549..d0e9a8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-05-05 Federico Di Gregorio <fog@initd.org>
+
+ * Fixed sun build problem by adding "sun" to config.h checks.
+
2006-09-01 Federico Di Gregorio <fog@initd.org>
* psycopg/connection_type.c: merged in double mutex destroy patch
diff --git a/psycopg/config.h b/psycopg/config.h
index 9c661ff..db9f284 100644
--- a/psycopg/config.h
+++ b/psycopg/config.h
@@ -129,7 +129,7 @@ static struct tm *localtime_r(time_t *t, struct tm *tm)
#define inline
#endif
-#if defined(__FreeBSD__) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__)
+#if defined(__FreeBSD__) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) || defined(sun)
/* what's this, we have no round function either? */
static double round(double num)
{