Add HAVE_CLOSE_RANGE

This commit is contained in:
Francois Kritzinger 2024-01-08 13:47:12 +02:00
parent d68da72453
commit 198f70bab2

View File

@ -0,0 +1,14 @@
// HAVE_CLOSE_RANGE : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_CLOSE_RANGE
/* Since FreeBSD 12.2 (based on their online manual pages) and glibc 2.34.
*/
#if BUILD2_AUTOCONF_FREEBSD_PREREQ(12, 2) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(2, 34)
# define HAVE_CLOSE_RANGE 1
#endif