aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2023-02-26 14:14:43 +0800
committerPo Lu2023-02-26 14:14:43 +0800
commit74a7d34361a857fdb48ec89276f0efedec32f6d0 (patch)
tree39f7903f02018b2f6241f7b4e0af1e672587286d
parent28f6add67f8c30999a3809b242fa66f558a27005 (diff)
downloademacs-74a7d34361a857fdb48ec89276f0efedec32f6d0.tar.gz
emacs-74a7d34361a857fdb48ec89276f0efedec32f6d0.zip
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.
-rw-r--r--cross/lib/unistd.in.h18
-rw-r--r--lib/gnulib.mk.in1
-rw-r--r--m4/gnulib-comp.m44
3 files changed, 21 insertions, 2 deletions
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 @@
40# undef _GL_INCLUDING_UNISTD_H 40# undef _GL_INCLUDING_UNISTD_H
41#endif 41#endif
42 42
43/* Avoid lseek bugs in FreeBSD, macOS <https://bugs.gnu.org/61386>.
44 This bug is fixed after FreeBSD 13; see <https://bugs.freebsd.org/256205>.
45 Use macOS "9999" to stand for a future fixed macOS version. */
46#if defined __FreeBSD__ && __FreeBSD__ < 14
47# undef SEEK_DATA
48# undef SEEK_HOLE
49#elif defined __APPLE__ && defined __MACH__ && defined SEEK_DATA
50# ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
51# include <AvailabilityMacros.h>
52# endif
53# if (!defined MAC_OS_X_VERSION_MIN_REQUIRED \
54 || MAC_OS_X_VERSION_MIN_REQUIRED < 99990000)
55# include <sys/fcntl.h> /* It also defines the two macros. */
56# undef SEEK_DATA
57# undef SEEK_HOLE
58# endif
59#endif
60
43/* Get all possible declarations of gethostname(). */ 61/* Get all possible declarations of gethostname(). */
44#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ 62#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \
45 && !defined _GL_INCLUDING_WINSOCK2_H 63 && !defined _GL_INCLUDING_WINSOCK2_H
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in
index e577d8063fd..a5be32427b6 100644
--- a/lib/gnulib.mk.in
+++ b/lib/gnulib.mk.in
@@ -1116,6 +1116,7 @@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@
1116INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ 1116INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@
1117JARSIGNER = @JARSIGNER@ 1117JARSIGNER = @JARSIGNER@
1118JAVAC = @JAVAC@ 1118JAVAC = @JAVAC@
1119JAVAFLAGS = @JAVAFLAGS@
1119JPEG_CFLAGS = @JPEG_CFLAGS@ 1120JPEG_CFLAGS = @JPEG_CFLAGS@
1120JSON_CFLAGS = @JSON_CFLAGS@ 1121JSON_CFLAGS = @JSON_CFLAGS@
1121JSON_LIBS = @JSON_LIBS@ 1122JSON_LIBS = @JSON_LIBS@
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4
index fa9e589778f..473284753b4 100644
--- a/m4/gnulib-comp.m4
+++ b/m4/gnulib-comp.m4
@@ -28,7 +28,7 @@
28# other built files. 28# other built files.
29 29
30 30
31# This macro should be invoked from .//configure.ac, in the section 31# This macro should be invoked from ./configure.ac, in the section
32# "Checks for programs", right after AC_PROG_CC, and certainly before 32# "Checks for programs", right after AC_PROG_CC, and certainly before
33# any checks for libraries, header files, types and library functions. 33# any checks for libraries, header files, types and library functions.
34AC_DEFUN([gl_EARLY], 34AC_DEFUN([gl_EARLY],
@@ -234,7 +234,7 @@ AC_DEFUN([gl_EARLY],
234 # Code from module xsize: 234 # Code from module xsize:
235]) 235])
236 236
237# This macro should be invoked from .//configure.ac, in the section 237# This macro should be invoked from ./configure.ac, in the section
238# "Check for header files, types and library functions". 238# "Check for header files, types and library functions".
239AC_DEFUN([gl_INIT], 239AC_DEFUN([gl_INIT],
240[ 240[