diff --git a/NEWS b/NEWS index 5ed2c127..e9408c52 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,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 a96864f3..780bb97a 100644 --- a/psycopg/config.h +++ b/psycopg/config.h @@ -153,6 +153,11 @@ typedef unsigned __int64 uint64_t; #include "win32_support.h" #endif +/* Use params.h for __FreeBSD_version (only needed from a certain version on) */ +#if defined(__FreeBSD__) && !defined(__FreeBSD_version) +#include +#endif + /* what's this, we have no round function either? */ #if (defined(__FreeBSD__) && __FreeBSD_version < 503000) \ || (defined(_WIN32) && !defined(__GNUC__)) \