Tue, 22 Mar 2011 19:33:14 +0100
Import package vendor original specs for necessary manipulations.
michael@313 | 1 | Index: psycopg2-2.0.14/psycopg/config.h |
michael@313 | 2 | --- psycopg2-2.0.14/psycopg/config.h.orig 2009-04-26 14:09:21 +0200 |
michael@313 | 3 | +++ psycopg2-2.0.14/psycopg/config.h 2009-10-08 22:31:01 +0200 |
michael@313 | 4 | @@ -140,10 +140,11 @@ |
michael@313 | 5 | |
michael@313 | 6 | #if (defined(__FreeBSD__) && __FreeBSD_version < 503000) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) || defined(sun) |
michael@313 | 7 | /* what's this, we have no round function either? */ |
michael@313 | 8 | -static double round(double num) |
michael@313 | 9 | +static double my_round(double num) |
michael@313 | 10 | { |
michael@313 | 11 | return (num >= 0) ? floor(num + 0.5) : ceil(num - 0.5); |
michael@313 | 12 | } |
michael@313 | 13 | +#define round(num) my_round(num) |
michael@313 | 14 | #endif |
michael@313 | 15 | |
michael@313 | 16 | /* postgresql < 7.4 does not have PQfreemem */ |
michael@313 | 17 | Index: psycopg2-2.0.14/setup.py |
michael@313 | 18 | --- psycopg2-2.0.14/setup.py.orig 2009-10-04 23:37:14 +0200 |
michael@313 | 19 | +++ psycopg2-2.0.14/setup.py 2009-10-08 23:15:48 +0200 |
michael@313 | 20 | @@ -203,6 +203,9 @@ |
michael@313 | 21 | os.path.join(self.get_pg_config("libdir"), "libpq.a")) |
michael@313 | 22 | else: |
michael@313 | 23 | self.libraries.append("pq") |
michael@313 | 24 | + self.libraries.append("ssl") |
michael@313 | 25 | + self.libraries.append("crypto") |
michael@313 | 26 | + self.libraries.append("crypt") |
michael@313 | 27 | |
michael@313 | 28 | try: |
michael@313 | 29 | self.library_dirs.append(self.get_pg_config("libdir")) |