diff options
| author | Paul Eggert | 2021-10-04 12:11:39 -0700 |
|---|---|---|
| committer | Paul Eggert | 2021-10-04 15:21:31 -0700 |
| commit | 68a256c89270ef9e97bca6097967a9ed2b050f4a (patch) | |
| tree | 7a3cca947c133bf7def967083f1054dfa4239322 /lib/canonicalize-lgpl.c | |
| parent | 63cb65dccecb1146cdad7134e4b62ea3e1433880 (diff) | |
| download | emacs-68a256c89270ef9e97bca6097967a9ed2b050f4a.tar.gz emacs-68a256c89270ef9e97bca6097967a9ed2b050f4a.zip | |
Update from Gnulib
Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove. These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.
Diffstat (limited to 'lib/canonicalize-lgpl.c')
| -rw-r--r-- | lib/canonicalize-lgpl.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lib/canonicalize-lgpl.c b/lib/canonicalize-lgpl.c index b7dba08994d..92e96397206 100644 --- a/lib/canonicalize-lgpl.c +++ b/lib/canonicalize-lgpl.c | |||
| @@ -3,16 +3,16 @@ | |||
| 3 | This file is part of the GNU C Library. | 3 | This file is part of the GNU C Library. |
| 4 | 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | 5 | The GNU C Library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU General Public | 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
| 8 | version 3 of the License, or (at your option) any later version. | 8 | version 2.1 of the License, or (at your option) any later version. |
| 9 | 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | 10 | The GNU C Library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | General Public License for more details. | 13 | Lesser General Public License for more details. |
| 14 | 14 | ||
| 15 | You should have received a copy of the GNU General Public | 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with the GNU C Library; if not, see | 16 | License along with the GNU C Library; if not, see |
| 17 | <https://www.gnu.org/licenses/>. */ | 17 | <https://www.gnu.org/licenses/>. */ |
| 18 | 18 | ||
| @@ -21,7 +21,6 @@ | |||
| 21 | optimizes away the name == NULL test below. */ | 21 | optimizes away the name == NULL test below. */ |
| 22 | # define _GL_ARG_NONNULL(params) | 22 | # define _GL_ARG_NONNULL(params) |
| 23 | 23 | ||
| 24 | # define _GL_USE_STDLIB_ALLOC 1 | ||
| 25 | # include <libc-config.h> | 24 | # include <libc-config.h> |
| 26 | #endif | 25 | #endif |
| 27 | 26 | ||
| @@ -75,7 +74,12 @@ | |||
| 75 | # define __pathconf pathconf | 74 | # define __pathconf pathconf |
| 76 | # define __rawmemchr rawmemchr | 75 | # define __rawmemchr rawmemchr |
| 77 | # define __readlink readlink | 76 | # define __readlink readlink |
| 78 | # define __stat stat | 77 | # if IN_RELOCWRAPPER |
| 78 | /* When building the relocatable program wrapper, use the system's memmove | ||
| 79 | function, not the gnulib override, otherwise we would get a link error. | ||
| 80 | */ | ||
| 81 | # undef memmove | ||
| 82 | # endif | ||
| 79 | #endif | 83 | #endif |
| 80 | 84 | ||
| 81 | /* Suppress bogus GCC -Wmaybe-uninitialized warnings. */ | 85 | /* Suppress bogus GCC -Wmaybe-uninitialized warnings. */ |
| @@ -100,7 +104,7 @@ file_accessible (char const *file) | |||
| 100 | return __faccessat (AT_FDCWD, file, F_OK, AT_EACCESS) == 0; | 104 | return __faccessat (AT_FDCWD, file, F_OK, AT_EACCESS) == 0; |
| 101 | # else | 105 | # else |
| 102 | struct stat st; | 106 | struct stat st; |
| 103 | return __stat (file, &st) == 0 || errno == EOVERFLOW; | 107 | return stat (file, &st) == 0 || errno == EOVERFLOW; |
| 104 | # endif | 108 | # endif |
| 105 | } | 109 | } |
| 106 | 110 | ||