michael@313: Index: psycopg2-2.0.14/psycopg/config.h michael@313: --- psycopg2-2.0.14/psycopg/config.h.orig 2009-04-26 14:09:21 +0200 michael@313: +++ psycopg2-2.0.14/psycopg/config.h 2009-10-08 22:31:01 +0200 michael@313: @@ -140,10 +140,11 @@ michael@313: michael@313: #if (defined(__FreeBSD__) && __FreeBSD_version < 503000) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) || defined(sun) michael@313: /* what's this, we have no round function either? */ michael@313: -static double round(double num) michael@313: +static double my_round(double num) michael@313: { michael@313: return (num >= 0) ? floor(num + 0.5) : ceil(num - 0.5); michael@313: } michael@313: +#define round(num) my_round(num) michael@313: #endif michael@313: michael@313: /* postgresql < 7.4 does not have PQfreemem */ michael@313: Index: psycopg2-2.0.14/setup.py michael@313: --- psycopg2-2.0.14/setup.py.orig 2009-10-04 23:37:14 +0200 michael@313: +++ psycopg2-2.0.14/setup.py 2009-10-08 23:15:48 +0200 michael@313: @@ -203,6 +203,9 @@ michael@313: os.path.join(self.get_pg_config("libdir"), "libpq.a")) michael@313: else: michael@313: self.libraries.append("pq") michael@313: + self.libraries.append("ssl") michael@313: + self.libraries.append("crypto") michael@313: + self.libraries.append("crypt") michael@313: michael@313: try: michael@313: self.library_dirs.append(self.get_pg_config("libdir"))