diff options
| author | Federico Di Gregorio <fog@initd.org> | 2008-05-05 15:55:51 +0200 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2008-05-05 15:55:51 +0200 |
| commit | 0319bc8cc457c7a24dbbeb46548ef4202dce6617 (patch) | |
| tree | a2f382ca0d8e861b0d58e1d7d91adcdc1f86f9e3 | |
| parent | 975d2286e85fa54d8fcd686c1b1b6e8f2a124b89 (diff) | |
| download | psycopg2-0319bc8cc457c7a24dbbeb46548ef4202dce6617.tar.gz | |
Fixed build error on SUN
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | psycopg/config.h | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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) { |
