Index: psycopg2-2.0.5.1/psycopg/config.h --- psycopg2-2.0.5.1/psycopg/config.h.orig 2006-02-11 19:56:19 +0100 +++ psycopg2-2.0.5.1/psycopg/config.h 2006-03-07 21:54:38 +0100 @@ -104,10 +104,11 @@ #if defined(__FreeBSD__) || defined(_WIN32) || defined(__sun__) /* what's this, we have no round function either? */ -static double round(double num) +static double my_round(double num) { return (num >= 0) ? floor(num + 0.5) : ceil(num - 0.5); } +#define round(num) my_round(num) #endif /* postgresql < 7.4 does not have PQfreemem */ Index: psycopg2-2.0.5.1/setup.py --- psycopg2-2.0.5.1/setup.py.orig 2006-02-11 19:58:38 +0100 +++ psycopg2-2.0.5.1/setup.py 2006-03-07 21:54:38 +0100 @@ -143,6 +143,9 @@ self.include_dirs.append(".") self.libraries.append("pq") + self.libraries.append("ssl") + self.libraries.append("crypto") + self.libraries.append("crypt") try: self.library_dirs.append(self.get_pg_config("libdir"))