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