summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-09-07 23:58:19 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-09-07 23:58:19 +0100
commit6b6b1a6e8d5d831fe17b168b4bf33d2c22bb2cc0 (patch)
treeb35433697d6f9a546fb9cadde372b6550341ed07
parent6af55ee51ca098850ccfc360fd3cde339af984f6 (diff)
parent0eaa0c9d4e8b738ca2abc2e92a1e5042a62d2a79 (diff)
downloadpsycopg2-6b6b1a6e8d5d831fe17b168b4bf33d2c22bb2cc0.tar.gz
Merge branch 'fix-bsd'
-rw-r--r--NEWS1
-rw-r--r--psycopg/config.h3
2 files changed, 2 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index e0c4da5..6602d93 100644
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,7 @@ What's new in psycopg 2.7.6
- Close named cursors if exist, even if `~cursor.execute()` wasn't called
(:ticket:`#746`).
+- Fixed building on modern FreeBSD versions with Python 3.7 (:ticket:`#755`)
What's new in psycopg 2.7.5
diff --git a/psycopg/config.h b/psycopg/config.h
index a96864f..6b33c2c 100644
--- a/psycopg/config.h
+++ b/psycopg/config.h
@@ -154,8 +154,7 @@ typedef unsigned __int64 uint64_t;
#endif
/* what's this, we have no round function either? */
-#if (defined(__FreeBSD__) && __FreeBSD_version < 503000) \
- || (defined(_WIN32) && !defined(__GNUC__)) \
+#if (defined(_WIN32) && !defined(__GNUC__)) \
|| (defined(sun) || defined(__sun__)) \
&& (defined(__SunOS_5_8) || defined(__SunOS_5_9))