diff options
| author | Paul Eggert | 2023-08-12 19:39:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2023-08-12 19:46:12 -0700 |
| commit | 5e736ca6ccfa131736ab0b3a298de2cb319e7dfb (patch) | |
| tree | 65b06f7a73dc2a04c60af430bc95102a347979df /admin | |
| parent | b35431b218ada2d84eb251d18e5543388b598d80 (diff) | |
| download | emacs-5e736ca6ccfa131736ab0b3a298de2cb319e7dfb.tar.gz emacs-5e736ca6ccfa131736ab0b3a298de2cb319e7dfb.zip | |
Improve boot-time gathering
Simplify Emacs proper by using Gnulib’s boot-time module
instead of doing it all by hand. This should port Emacs
better to obscurish hosts, as Bruno Haible has merged the
best of Emacs’s and Gnulib’s boot-time gathering.
* lib/boot-time-aux.h, lib/boot-time.c, lib/boot-time.h:
* lib/readutmp.h, m4/readutmp.m4: New files, copied from Gnulib.
* admin/merge-gnulib (GNULIB_MODULES): Add boot-time.
* configure.ac: Do not check for utmp.h;
the boot-time module now does this.
(BOOT_TIME_FILE): Remove; no longer used.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* src/filelock.c [__FreeBSD__]: Do not include <sys/sysctl.h>.
[HAVE_UTMP_H]: Do not include utmp.h.
Include boot-time instead: boot-time does the work now.
(BOOT_TIME) [HAVE_ANDROID && !ANDROID_STUBIFY]: Don’t undef.
(WTMP_FILE): Don’t define.
(boot_time, boot_time_initialized, get_boot_time_1, get_boot_time):
Remove.
(get_boot_sec): New function that simply calls Gnulib get_boot_time.
(lock_file_1, current_lock_owner): Use get_boot_sec instead
of get_boot_time.
Diffstat (limited to 'admin')
| -rwxr-xr-x | admin/merge-gnulib | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/merge-gnulib b/admin/merge-gnulib index 2a713beb01a..fe88d1106ae 100755 --- a/admin/merge-gnulib +++ b/admin/merge-gnulib | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | GNULIB_URL=https://git.savannah.gnu.org/git/gnulib.git | 26 | GNULIB_URL=https://git.savannah.gnu.org/git/gnulib.git |
| 27 | 27 | ||
| 28 | GNULIB_MODULES=' | 28 | GNULIB_MODULES=' |
| 29 | alignasof alloca-opt binary-io byteswap c-ctype c-strcase | 29 | alignasof alloca-opt binary-io boot-time byteswap c-ctype c-strcase |
| 30 | canonicalize-lgpl | 30 | canonicalize-lgpl |
| 31 | careadlinkat close-stream copy-file-range | 31 | careadlinkat close-stream copy-file-range |
| 32 | count-leading-zeros count-one-bits count-trailing-zeros | 32 | count-leading-zeros count-one-bits count-trailing-zeros |