Index: psycopg2-2.0.14/psycopg/config.h --- psycopg2-2.0.14/psycopg/config.h.orig 2009-04-26 14:09:21 +0200 +++ psycopg2-2.0.14/psycopg/config.h 2009-10-08 22:31:01 +0200 @@ -140,10 +140,11 @@ #if (defined(__FreeBSD__) && __FreeBSD_version < 503000) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) || 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.14/setup.py --- psycopg2-2.0.14/setup.py.orig 2009-10-04 23:37:14 +0200 +++ psycopg2-2.0.14/setup.py 2009-10-08 23:15:48 +0200 @@ -203,6 +203,9 @@ os.path.join(self.get_pg_config("libdir"), "libpq.a")) else: 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"))