michael@314: Index: psycopg2-2.4/psycopg/config.h michael@314: diff -Nau psycopg2-2.4psycopg/config.h.orig/ psycopg2-2.4/psycopg/config.h michael@314: --- psycopg2-2.4/psycopg/config.h.orig 2011-02-27 12:44:55.000000000 +0100 michael@314: +++ psycopg2-2.4/psycopg/config.h 2011-03-22 19:19:11.648184363 +0100 michael@314: @@ -141,10 +141,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@314: Index: psycopg2-2.4/setup.py michael@314: diff -Nau psycopg2-2.4/setup.py.orig/ psycopg2-2.4/setup.py michael@314: --- psycopg2-2.4/setup.py.orig 2011-02-27 12:46:47.000000000 +0100 michael@314: +++ psycopg2-2.4/setup.py 2011-03-22 19:36:51.906859031 +0100 michael@314: @@ -269,6 +269,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"))