diff options
| author | Paul Eggert | 2020-03-25 13:39:21 -0700 |
|---|---|---|
| committer | Paul Eggert | 2020-03-25 13:40:35 -0700 |
| commit | 1060a6401b8ee9aaa4b2056025402e7fa1ad1643 (patch) | |
| tree | a0900d48c4b8c59ea2daeafcbb0900c5e40accfe /lib | |
| parent | 2ea87d6c6f1161801402958bdc6b6a2e6c41c6b8 (diff) | |
| download | emacs-1060a6401b8ee9aaa4b2056025402e7fa1ad1643.tar.gz emacs-1060a6401b8ee9aaa4b2056025402e7fa1ad1643.zip | |
Update from gnulib
This incorporates:
2020-03-25 getopt-posix: port __GETOPT_PREFIX to macOS
2020-03-22 acl-permissions: Improve autoconf macro
* lib/getopt-pfx-core.h, m4/acl.m4: Copy from Gnulib.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/getopt-pfx-core.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/getopt-pfx-core.h b/lib/getopt-pfx-core.h index da0a6d0c3c4..ec545c1b51c 100644 --- a/lib/getopt-pfx-core.h +++ b/lib/getopt-pfx-core.h | |||
| @@ -48,6 +48,14 @@ | |||
| 48 | # define optind __GETOPT_ID (optind) | 48 | # define optind __GETOPT_ID (optind) |
| 49 | # define optopt __GETOPT_ID (optopt) | 49 | # define optopt __GETOPT_ID (optopt) |
| 50 | 50 | ||
| 51 | /* Work around a a problem on macOS, which declares getopt with a | ||
| 52 | trailing __DARWIN_ALIAS(getopt) that would expand to something like | ||
| 53 | __asm("_" "rpl_getopt" "$UNIX2003") were it not for the following | ||
| 54 | hack to suppress the macOS declaration <https://bugs.gnu.org/40205>. */ | ||
| 55 | # ifdef __APPLE__ | ||
| 56 | # define _GETOPT | ||
| 57 | # endif | ||
| 58 | |||
| 51 | /* The system's getopt.h may have already included getopt-core.h to | 59 | /* The system's getopt.h may have already included getopt-core.h to |
| 52 | declare the unprefixed identifiers. Undef _GETOPT_CORE_H so that | 60 | declare the unprefixed identifiers. Undef _GETOPT_CORE_H so that |
| 53 | getopt-core.h declares them with prefixes. */ | 61 | getopt-core.h declares them with prefixes. */ |