Re: git: bf4345746390 - main - www/*chromium: add missing osreldate.h header tighten the version check
Date: Wed, 01 Mar 2023 17:14:46 UTC
Robert Nagy <rnagy@FreeBSD.org> writes: > -+#if __FreeBSD__version > 1300000 > - #define HAVE_MEMFD_CREATE > -+#else > ++#if defined(__FreeBSD__) > ++#include <osreldate.h> > ++#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 > +#undef HAVE_MEMFD_CREATE > ++#else > + #define HAVE_MEMFD_CREATE > ++#endif > +#endif A more simple way is to check __FreeBSD__ value. ports/ tree doesn't support EOL -RELEASEs, let alone old -CURRENT snapshots. $ git -C /usr/src show release/13.0.0:sys/sys/param.h | grep '#define.*_version' #define __FreeBSD_version 1300139 /* Master, propagated to newvers */ #if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ >= 13) #define HAVE_MEMFD_CREATE #else #undef HAVE_MEMFD_CREATE #endif