Merge branch 'fix-bsd'

This commit is contained in:
Daniele Varrazzo 2018-09-07 23:58:19 +01:00
commit 6b6b1a6e8d
2 changed files with 2 additions and 2 deletions

1
NEWS
View File

@ -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

View File

@ -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))