diff options
| author | Paul Eggert | 2023-08-09 12:06:25 -0700 |
|---|---|---|
| committer | Paul Eggert | 2023-08-09 12:15:47 -0700 |
| commit | cc0a30a876adffa5ec110df9f4e0f21097f6d73e (patch) | |
| tree | 024bc0acb8de48aebed591b25aeb02508038272d /src | |
| parent | 020b5d7fefd255117ab4fca636146b5b59c8fb84 (diff) | |
| download | emacs-cc0a30a876adffa5ec110df9f4e0f21097f6d73e.tar.gz emacs-cc0a30a876adffa5ec110df9f4e0f21097f6d73e.zip | |
Adjust to random-seed move
For some time, GNU/Linux systems have put their random-seed file
somewhere other than where src/filelock.c looks for it.
Catch up to this by having 'configure' scout for it.
* configure.ac (BOOT_TIME_FILE):
Define this at configure-time.
* nt/inc/ms-w32.h (BOOT_TIME_FILE): Override 'configure'.
* src/filelock.c (BOOT_TIME_FILE): Remove default definition,
since 'configure' defaults it now.
Diffstat (limited to 'src')
| -rw-r--r-- | src/filelock.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/filelock.c b/src/filelock.c index 66b8fd2ceac..0ad130353f3 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -59,12 +59,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 59 | #include <utmp.h> | 59 | #include <utmp.h> |
| 60 | #endif | 60 | #endif |
| 61 | 61 | ||
| 62 | /* A file whose last-modified time is just after the most recent boot. | ||
| 63 | Define this to be NULL to disable checking for this file. */ | ||
| 64 | #ifndef BOOT_TIME_FILE | ||
| 65 | #define BOOT_TIME_FILE "/var/run/random-seed" | ||
| 66 | #endif | ||
| 67 | |||
| 68 | /* Boot time is not available on Android. */ | 62 | /* Boot time is not available on Android. */ |
| 69 | 63 | ||
| 70 | #if defined HAVE_ANDROID && !defined ANDROID_STUBIFY | 64 | #if defined HAVE_ANDROID && !defined ANDROID_STUBIFY |