You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
29 lines
1.1 KiB
Index: psycopg2-2.2.1/psycopg/config.h |
|
--- psycopg2-2.2.1/psycopg/config.h.orig 2009-04-26 14:09:21 +0200 |
|
+++ psycopg2-2.2.1/psycopg/config.h 2009-10-08 22:31:01 +0200 |
|
@@ -140,10 +140,11 @@ |
|
|
|
#if (defined(__FreeBSD__) && __FreeBSD_version < 503000) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) || defined(sun) |
|
/* what's this, we have no round function either? */ |
|
-static double round(double num) |
|
+static double my_round(double num) |
|
{ |
|
return (num >= 0) ? floor(num + 0.5) : ceil(num - 0.5); |
|
} |
|
+#define round(num) my_round(num) |
|
#endif |
|
|
|
/* postgresql < 7.4 does not have PQfreemem */ |
|
Index: psycopg2-2.2.1/setup.py |
|
--- psycopg2-2.2.1/setup.py.orig 2009-10-04 23:37:14 +0200 |
|
+++ psycopg2-2.2.1/setup.py 2009-10-08 23:15:48 +0200 |
|
@@ -203,6 +203,9 @@ |
|
os.path.join(self.get_pg_config("libdir"), "libpq.a")) |
|
else: |
|
self.libraries.append("pq") |
|
+ self.libraries.append("ssl") |
|
+ self.libraries.append("crypto") |
|
+ self.libraries.append("crypt") |
|
|
|
try: |
|
self.library_dirs.append(self.get_pg_config("libdir"))
|
|
|