Compile again on modern FreeBSD

This commit is contained in:
Federico Di Gregorio 2009-02-16 10:00:34 +01:00
parent f9fa711f03
commit 41dd7a1095
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-02-16 Federico Di Gregorio <fog@initd.org>
* FreeBSD now has round(). Modified config.h as suggested by
Jeroen Ruigrok van der Werven.
2009-02-06 Federico Di Gregorio <fog@initd.org>
* Applied patch by Markus Demleitner to make executemany() return

View File

@ -129,7 +129,7 @@ static struct tm *localtime_r(time_t *t, struct tm *tm)
#define inline
#endif
#if defined(__FreeBSD__) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) || defined(sun)
#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)
{