Index: psycopg2-2.0.12/psycopg/config.h --- psycopg2-2.0.12/psycopg/config.h.orig 2007-04-11 14:12:37 +0200 +++ psycopg2-2.0.12/psycopg/config.h 2007-05-17 17:50:16 +0200 @@ -115,10 +115,11 @@ #if defined(__FreeBSD__) || (defined(_WIN32) && !defined(__GNUC__)) || 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.12/setup.py --- psycopg2-2.0.12/setup.py.orig 2007-04-11 17:03:50 +0200 +++ psycopg2-2.0.12/setup.py 2007-05-17 17:51:26 +0200 @@ -191,6 +191,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"))