From 74a7d34361a857fdb48ec89276f0efedec32f6d0 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 26 Feb 2023 14:14:43 +0800 Subject: Update from gnulib * cross/lib/unistd.in.h: * lib/gnulib.mk.in (INT64_MAX_EQ_LONG_MAX): * m4/gnulib-comp.m4 (gl_EARLY): Update from gnulib. --- cross/lib/unistd.in.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'cross') diff --git a/cross/lib/unistd.in.h b/cross/lib/unistd.in.h index bfc501e5a7d..8ba9867894e 100644 --- a/cross/lib/unistd.in.h +++ b/cross/lib/unistd.in.h @@ -40,6 +40,24 @@ # undef _GL_INCLUDING_UNISTD_H #endif +/* Avoid lseek bugs in FreeBSD, macOS . + This bug is fixed after FreeBSD 13; see . + Use macOS "9999" to stand for a future fixed macOS version. */ +#if defined __FreeBSD__ && __FreeBSD__ < 14 +# undef SEEK_DATA +# undef SEEK_HOLE +#elif defined __APPLE__ && defined __MACH__ && defined SEEK_DATA +# ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ +# include +# endif +# if (!defined MAC_OS_X_VERSION_MIN_REQUIRED \ + || MAC_OS_X_VERSION_MIN_REQUIRED < 99990000) +# include /* It also defines the two macros. */ +# undef SEEK_DATA +# undef SEEK_HOLE +# endif +#endif + /* Get all possible declarations of gethostname(). */ #if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ && !defined _GL_INCLUDING_WINSOCK2_H -- cgit v1.2.3