https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208486

--- Comment #9 from Dimitry Andric <[email protected]> ---
(In reply to Antoine Brodin from comment #8)
> (In reply to Antoine Brodin from comment #7)
> The failure seems to be because osreldate.h is no longer included,

Hmm, indeed; psycopg2-2.6.1/psycopg/config.h has this fragment:

#if (defined(__FreeBSD__) && __FreeBSD_version < 503000) \
    || (defined(_WIN32) && !defined(__GNUC__)) \
    || (defined(sun) || defined(__sun__)) \
        && (defined(__SunOS_5_8) || defined(__SunOS_5_9))
/* what's this, we have no round function either? */
static double round(double num)
{
  return (num >= 0) ? floor(num + 0.5) : ceil(num - 0.5);
}
#endif

but it doesn't include <osreldate.h> by itself.  Apparently such python modules
simply assume the existence of __FreeBSD_version, since it was always there.


> so the
> previous patch may be less intrusive

Ok, let's go for that one then.  I'll update it with revision bumps.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "[email protected]"

Reply via email to