diff options
| author | Paul Eggert | 2014-03-07 10:57:11 -0800 |
|---|---|---|
| committer | Paul Eggert | 2014-03-07 10:57:11 -0800 |
| commit | 0d181095652bf8e1ca27935e54ecbb5443496334 (patch) | |
| tree | 5bf9307c53f29af1a493e42308887ce26785c5b3 | |
| parent | d67d60a2eab5f7f1f9b1d31cd1c7dd1e31bb4d2b (diff) | |
| download | emacs-0d181095652bf8e1ca27935e54ecbb5443496334.tar.gz emacs-0d181095652bf8e1ca27935e54ecbb5443496334.zip | |
Merge from gnulib.
This incorporates:
2014-03-04 stdint: fix missing SIZE_MAX on Android
2013-03-02 sys_types: avoid autoconf warning about gl_SYS_TYPES_H
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/stdint.in.h, lib/sys_types.in.h, m4/sys_types_h.m4:
Update from gnulib.
Fix oversight preventing lib/sys/types.h from being generated.
* admin/merge-gnulib (GNULIB_TOOL_FLAGS): Don't avoid sys_types.
| -rw-r--r-- | ChangeLog | 9 | ||||
| -rw-r--r-- | admin/ChangeLog | 5 | ||||
| -rwxr-xr-x | admin/merge-gnulib | 2 | ||||
| -rw-r--r-- | lib/gnulib.mk | 27 | ||||
| -rw-r--r-- | lib/stdint.in.h | 3 | ||||
| -rw-r--r-- | lib/sys_types.in.h | 2 | ||||
| -rw-r--r-- | m4/gnulib-comp.m4 | 5 | ||||
| -rw-r--r-- | m4/sys_types_h.m4 | 4 |
8 files changed, 51 insertions, 6 deletions
| @@ -1,3 +1,12 @@ | |||
| 1 | 2014-03-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Merge from gnulib, incorporating: | ||
| 4 | 2014-03-04 stdint: fix missing SIZE_MAX on Android | ||
| 5 | 2013-03-02 sys_types: avoid autoconf warning about gl_SYS_TYPES_H | ||
| 6 | * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. | ||
| 7 | * lib/stdint.in.h, lib/sys_types.in.h, m4/sys_types_h.m4: | ||
| 8 | Update from gnulib. | ||
| 9 | |||
| 1 | 2014-03-05 Glenn Morris <rgm@gnu.org> | 10 | 2014-03-05 Glenn Morris <rgm@gnu.org> |
| 2 | 11 | ||
| 3 | * configure.ac: Tweak the "unported" error message. | 12 | * configure.ac: Tweak the "unported" error message. |
diff --git a/admin/ChangeLog b/admin/ChangeLog index ef025c7630e..24f714eee8f 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-03-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Fix oversight preventing lib/sys/types.h from being generated. | ||
| 4 | * merge-gnulib (GNULIB_TOOL_FLAGS): Don't avoid sys_types. | ||
| 5 | |||
| 1 | 2014-02-06 David Engster <deng@randomsample.de> | 6 | 2014-02-06 David Engster <deng@randomsample.de> |
| 2 | 7 | ||
| 3 | * grammars/c.by (function-pointer): Correctly deal with anonymous | 8 | * grammars/c.by (function-pointer): Correctly deal with anonymous |
diff --git a/admin/merge-gnulib b/admin/merge-gnulib index 75808d30b60..6c0dffb6dce 100755 --- a/admin/merge-gnulib +++ b/admin/merge-gnulib | |||
| @@ -48,7 +48,7 @@ GNULIB_TOOL_FLAGS=' | |||
| 48 | --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow | 48 | --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow |
| 49 | --avoid=open --avoid=openat-die --avoid=opendir | 49 | --avoid=open --avoid=openat-die --avoid=opendir |
| 50 | --avoid=raise | 50 | --avoid=raise |
| 51 | --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=sys_types | 51 | --avoid=save-cwd --avoid=select --avoid=sigprocmask |
| 52 | --avoid=threadlib | 52 | --avoid=threadlib |
| 53 | --conditional-dependencies --import --no-changelog --no-vc-files | 53 | --conditional-dependencies --import --no-changelog --no-vc-files |
| 54 | --makefile-name=gnulib.mk | 54 | --makefile-name=gnulib.mk |
diff --git a/lib/gnulib.mk b/lib/gnulib.mk index 0f22beb3f5f..e219292aa34 100644 --- a/lib/gnulib.mk +++ b/lib/gnulib.mk | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | # the same distribution terms as the rest of that program. | 21 | # the same distribution terms as the rest of that program. |
| 22 | # | 22 | # |
| 23 | # Generated by gnulib-tool. | 23 | # Generated by gnulib-tool. |
| 24 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=close --avoid=dup --avoid=fchdir --avoid=fstat --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow --avoid=open --avoid=openat-die --avoid=opendir --avoid=raise --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=sys_types --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt byteswap c-ctype c-strcase careadlinkat close-stream count-one-bits count-trailing-zeros crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl fcntl-h fdatasync fdopendir filemode fstatat fsync getloadavg getopt-gnu gettime gettimeofday intprops largefile lstat manywarnings memrchr mkostemp mktime pipe2 pselect pthread_sigmask putenv qacl readlink readlinkat sig2str socklen stat-time stdalign stdarg stdbool stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timer-time timespec-add timespec-sub unsetenv update-copyright utimens warnings | 24 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=close --avoid=dup --avoid=fchdir --avoid=fstat --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow --avoid=open --avoid=openat-die --avoid=opendir --avoid=raise --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt byteswap c-ctype c-strcase careadlinkat close-stream count-one-bits count-trailing-zeros crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl fcntl-h fdatasync fdopendir filemode fstatat fsync getloadavg getopt-gnu gettime gettimeofday intprops largefile lstat manywarnings memrchr mkostemp mktime pipe2 pselect pthread_sigmask putenv qacl readlink readlinkat sig2str socklen stat-time stdalign stdarg stdbool stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timer-time timespec-add timespec-sub unsetenv update-copyright utimens warnings |
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | MOSTLYCLEANFILES += core *.stackdump | 27 | MOSTLYCLEANFILES += core *.stackdump |
| @@ -1549,6 +1549,31 @@ EXTRA_DIST += sys_time.in.h | |||
| 1549 | 1549 | ||
| 1550 | ## end gnulib module sys_time | 1550 | ## end gnulib module sys_time |
| 1551 | 1551 | ||
| 1552 | ## begin gnulib module sys_types | ||
| 1553 | |||
| 1554 | BUILT_SOURCES += sys/types.h | ||
| 1555 | |||
| 1556 | # We need the following in order to create <sys/types.h> when the system | ||
| 1557 | # doesn't have one that works with the given compiler. | ||
| 1558 | sys/types.h: sys_types.in.h $(top_builddir)/config.status | ||
| 1559 | $(AM_V_at)$(MKDIR_P) sys | ||
| 1560 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 1561 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
| 1562 | sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
| 1563 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 1564 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
| 1565 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
| 1566 | -e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \ | ||
| 1567 | -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \ | ||
| 1568 | < $(srcdir)/sys_types.in.h; \ | ||
| 1569 | } > $@-t && \ | ||
| 1570 | mv $@-t $@ | ||
| 1571 | MOSTLYCLEANFILES += sys/types.h sys/types.h-t | ||
| 1572 | |||
| 1573 | EXTRA_DIST += sys_types.in.h | ||
| 1574 | |||
| 1575 | ## end gnulib module sys_types | ||
| 1576 | |||
| 1552 | ## begin gnulib module tempname | 1577 | ## begin gnulib module tempname |
| 1553 | 1578 | ||
| 1554 | if gl_GNULIB_ENABLED_tempname | 1579 | if gl_GNULIB_ENABLED_tempname |
diff --git a/lib/stdint.in.h b/lib/stdint.in.h index 5deca3969ab..247f0d89619 100644 --- a/lib/stdint.in.h +++ b/lib/stdint.in.h | |||
| @@ -38,8 +38,7 @@ | |||
| 38 | other system header files; just include the system's <stdint.h>. | 38 | other system header files; just include the system's <stdint.h>. |
| 39 | Ideally we should test __BIONIC__ here, but it is only defined after | 39 | Ideally we should test __BIONIC__ here, but it is only defined after |
| 40 | <sys/cdefs.h> has been included; hence test __ANDROID__ instead. */ | 40 | <sys/cdefs.h> has been included; hence test __ANDROID__ instead. */ |
| 41 | #if defined __ANDROID__ \ | 41 | #if defined __ANDROID__ && defined _GL_INCLUDING_SYS_TYPES_H |
| 42 | && defined _SYS_TYPES_H_ && !defined __need_size_t | ||
| 43 | # @INCLUDE_NEXT@ @NEXT_STDINT_H@ | 42 | # @INCLUDE_NEXT@ @NEXT_STDINT_H@ |
| 44 | #else | 43 | #else |
| 45 | 44 | ||
diff --git a/lib/sys_types.in.h b/lib/sys_types.in.h index d3a4be1074a..deb5d67d1d7 100644 --- a/lib/sys_types.in.h +++ b/lib/sys_types.in.h | |||
| @@ -23,7 +23,9 @@ | |||
| 23 | #ifndef _@GUARD_PREFIX@_SYS_TYPES_H | 23 | #ifndef _@GUARD_PREFIX@_SYS_TYPES_H |
| 24 | 24 | ||
| 25 | /* The include_next requires a split double-inclusion guard. */ | 25 | /* The include_next requires a split double-inclusion guard. */ |
| 26 | # define _GL_INCLUDING_SYS_TYPES_H | ||
| 26 | #@INCLUDE_NEXT@ @NEXT_SYS_TYPES_H@ | 27 | #@INCLUDE_NEXT@ @NEXT_SYS_TYPES_H@ |
| 28 | # undef _GL_INCLUDING_SYS_TYPES_H | ||
| 27 | 29 | ||
| 28 | #ifndef _@GUARD_PREFIX@_SYS_TYPES_H | 30 | #ifndef _@GUARD_PREFIX@_SYS_TYPES_H |
| 29 | #define _@GUARD_PREFIX@_SYS_TYPES_H | 31 | #define _@GUARD_PREFIX@_SYS_TYPES_H |
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index 52fa116b93d..0ba2d7950af 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 | |||
| @@ -140,6 +140,7 @@ AC_DEFUN([gl_EARLY], | |||
| 140 | # Code from module sys_select: | 140 | # Code from module sys_select: |
| 141 | # Code from module sys_stat: | 141 | # Code from module sys_stat: |
| 142 | # Code from module sys_time: | 142 | # Code from module sys_time: |
| 143 | # Code from module sys_types: | ||
| 143 | # Code from module tempname: | 144 | # Code from module tempname: |
| 144 | # Code from module time: | 145 | # Code from module time: |
| 145 | # Code from module time_r: | 146 | # Code from module time_r: |
| @@ -372,6 +373,8 @@ AC_DEFUN([gl_INIT], | |||
| 372 | AC_PROG_MKDIR_P | 373 | AC_PROG_MKDIR_P |
| 373 | gl_HEADER_SYS_TIME_H | 374 | gl_HEADER_SYS_TIME_H |
| 374 | AC_PROG_MKDIR_P | 375 | AC_PROG_MKDIR_P |
| 376 | gl_SYS_TYPES_H | ||
| 377 | AC_PROG_MKDIR_P | ||
| 375 | gl_HEADER_TIME_H | 378 | gl_HEADER_TIME_H |
| 376 | gl_TIME_R | 379 | gl_TIME_R |
| 377 | if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then | 380 | if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then |
| @@ -907,6 +910,7 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 907 | lib/sys_select.in.h | 910 | lib/sys_select.in.h |
| 908 | lib/sys_stat.in.h | 911 | lib/sys_stat.in.h |
| 909 | lib/sys_time.in.h | 912 | lib/sys_time.in.h |
| 913 | lib/sys_types.in.h | ||
| 910 | lib/tempname.c | 914 | lib/tempname.c |
| 911 | lib/tempname.h | 915 | lib/tempname.h |
| 912 | lib/time.in.h | 916 | lib/time.in.h |
| @@ -1011,6 +1015,7 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 1011 | m4/sys_socket_h.m4 | 1015 | m4/sys_socket_h.m4 |
| 1012 | m4/sys_stat_h.m4 | 1016 | m4/sys_stat_h.m4 |
| 1013 | m4/sys_time_h.m4 | 1017 | m4/sys_time_h.m4 |
| 1018 | m4/sys_types_h.m4 | ||
| 1014 | m4/tempname.m4 | 1019 | m4/tempname.m4 |
| 1015 | m4/time_h.m4 | 1020 | m4/time_h.m4 |
| 1016 | m4/time_r.m4 | 1021 | m4/time_r.m4 |
diff --git a/m4/sys_types_h.m4 b/m4/sys_types_h.m4 index 48921846a68..9748905b598 100644 --- a/m4/sys_types_h.m4 +++ b/m4/sys_types_h.m4 | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | # sys_types_h.m4 serial 4 | 1 | # sys_types_h.m4 serial 5 |
| 2 | dnl Copyright (C) 2011-2014 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2011-2014 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
| 6 | 6 | ||
| 7 | AC_DEFUN([gl_SYS_TYPES_H], | 7 | AC_DEFUN_ONCE([gl_SYS_TYPES_H], |
| 8 | [ | 8 | [ |
| 9 | AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS]) | 9 | AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS]) |
| 10 | gl_NEXT_HEADERS([sys/types.h]) | 10 | gl_NEXT_HEADERS([sys/types.h]) |