Fixed build error on SUN

This commit is contained in:
Federico Di Gregorio 2008-05-05 15:55:51 +02:00
parent 975d2286e8
commit 0319bc8cc4
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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)
{