Date: Sat, 23 Apr 2016 12:23:20 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 208486] lang/python27 lang/python33 lang/python34 lang/python35: correct __FreeBSD_version check for ctype UTF-8 bug workaround Message-ID: <bug-208486-21822-WPcRl1lyw9@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-208486-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-208486-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208486 --- Comment #9 from Dimitry Andric <dim@FreeBSD.org> --- (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 >=3D 0) ? floor(num + 0.5) : ceil(num - 0.5); } #endif but it doesn't include <osreldate.h> by itself. Apparently such python mod= ules 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208486-21822-WPcRl1lyw9>