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 /lib/gnulib.mk.in | |
| 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 'lib/gnulib.mk.in')
| -rw-r--r-- | lib/gnulib.mk.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index 785bdc70c5c..3b33f39f73b 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in | |||
| @@ -76,6 +76,7 @@ | |||
| 76 | # alignasof \ | 76 | # alignasof \ |
| 77 | # alloca-opt \ | 77 | # alloca-opt \ |
| 78 | # binary-io \ | 78 | # binary-io \ |
| 79 | # boot-time \ | ||
| 79 | # byteswap \ | 80 | # byteswap \ |
| 80 | # c-ctype \ | 81 | # c-ctype \ |
| 81 | # c-strcase \ | 82 | # c-strcase \ |
| @@ -1601,6 +1602,16 @@ libgnu_a_SOURCES += binary-io.h binary-io.c | |||
| 1601 | endif | 1602 | endif |
| 1602 | ## end gnulib module binary-io | 1603 | ## end gnulib module binary-io |
| 1603 | 1604 | ||
| 1605 | ## begin gnulib module boot-time | ||
| 1606 | ifeq (,$(OMIT_GNULIB_MODULE_boot-time)) | ||
| 1607 | |||
| 1608 | libgnu_a_SOURCES += boot-time.c | ||
| 1609 | |||
| 1610 | EXTRA_DIST += boot-time-aux.h boot-time.h readutmp.h | ||
| 1611 | |||
| 1612 | endif | ||
| 1613 | ## end gnulib module boot-time | ||
| 1614 | |||
| 1604 | ## begin gnulib module byteswap | 1615 | ## begin gnulib module byteswap |
| 1605 | ifeq (,$(OMIT_GNULIB_MODULE_byteswap)) | 1616 | ifeq (,$(OMIT_GNULIB_MODULE_byteswap)) |
| 1606 | 1617 | ||