diff options
| author | Po Lu | 2023-02-26 14:14:43 +0800 |
|---|---|---|
| committer | Po Lu | 2023-02-26 14:14:43 +0800 |
| commit | 74a7d34361a857fdb48ec89276f0efedec32f6d0 (patch) | |
| tree | 39f7903f02018b2f6241f7b4e0af1e672587286d | |
| parent | 28f6add67f8c30999a3809b242fa66f558a27005 (diff) | |
| download | emacs-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.h | 18 | ||||
| -rw-r--r-- | lib/gnulib.mk.in | 1 | ||||
| -rw-r--r-- | m4/gnulib-comp.m4 | 4 |
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@ | |||
| 1116 | INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ | 1116 | INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ |
| 1117 | JARSIGNER = @JARSIGNER@ | 1117 | JARSIGNER = @JARSIGNER@ |
| 1118 | JAVAC = @JAVAC@ | 1118 | JAVAC = @JAVAC@ |
| 1119 | JAVAFLAGS = @JAVAFLAGS@ | ||
| 1119 | JPEG_CFLAGS = @JPEG_CFLAGS@ | 1120 | JPEG_CFLAGS = @JPEG_CFLAGS@ |
| 1120 | JSON_CFLAGS = @JSON_CFLAGS@ | 1121 | JSON_CFLAGS = @JSON_CFLAGS@ |
| 1121 | JSON_LIBS = @JSON_LIBS@ | 1122 | JSON_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. |
| 34 | AC_DEFUN([gl_EARLY], | 34 | AC_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". |
| 239 | AC_DEFUN([gl_INIT], | 239 | AC_DEFUN([gl_INIT], |
| 240 | [ | 240 | [ |