From ec4aa95554f90dc32cd5617e71b69bbd326294f3 Mon Sep 17 00:00:00 2001 From: Daniel Enman Date: Thu, 18 Apr 2013 16:59:26 -0300 Subject: [PATCH] Solaris 10+, and illumos distros have round() --- psycopg/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psycopg/config.h b/psycopg/config.h index f3094493..8b8a4499 100644 --- a/psycopg/config.h +++ b/psycopg/config.h @@ -141,7 +141,7 @@ static int pthread_mutex_init(pthread_mutex_t *mutex, void* fake) #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(__SunOS_5_8) || defined(__SunOS_5_9)) /* what's this, we have no round function either? */ static double round(double num) {