1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python-db/python-db.patch Tue Mar 22 19:33:14 2011 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +Index: psycopg2-2.0.14/psycopg/config.h 1.5 +--- psycopg2-2.0.14/psycopg/config.h.orig 2009-04-26 14:09:21 +0200 1.6 ++++ psycopg2-2.0.14/psycopg/config.h 2009-10-08 22:31:01 +0200 1.7 +@@ -140,10 +140,11 @@ 1.8 + 1.9 + #if (defined(__FreeBSD__) && __FreeBSD_version < 503000) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) || defined(sun) 1.10 + /* what's this, we have no round function either? */ 1.11 +-static double round(double num) 1.12 ++static double my_round(double num) 1.13 + { 1.14 + return (num >= 0) ? floor(num + 0.5) : ceil(num - 0.5); 1.15 + } 1.16 ++#define round(num) my_round(num) 1.17 + #endif 1.18 + 1.19 + /* postgresql < 7.4 does not have PQfreemem */ 1.20 +Index: psycopg2-2.0.14/setup.py 1.21 +--- psycopg2-2.0.14/setup.py.orig 2009-10-04 23:37:14 +0200 1.22 ++++ psycopg2-2.0.14/setup.py 2009-10-08 23:15:48 +0200 1.23 +@@ -203,6 +203,9 @@ 1.24 + os.path.join(self.get_pg_config("libdir"), "libpq.a")) 1.25 + else: 1.26 + self.libraries.append("pq") 1.27 ++ self.libraries.append("ssl") 1.28 ++ self.libraries.append("crypto") 1.29 ++ self.libraries.append("crypt") 1.30 + 1.31 + try: 1.32 + self.library_dirs.append(self.get_pg_config("libdir"))