forked from pool/xemacs
c398cf4b5e
Add xemacs-21.5.34-fix2038.patch to fix buffers after year 2038 OBS-URL: https://build.opensuse.org/request/show/1058331 OBS-URL: https://build.opensuse.org/package/show/M17N/xemacs?expand=0&rev=114
21 lines
684 B
Diff
21 lines
684 B
Diff
Author: Bernhard M. Wiedemann <bwiedemann suse de>
|
|
Date: 2023-01-14
|
|
Subject: Fix build in 2038
|
|
|
|
The UNIX Epoch needs more than 31 bits after 2038-01-19
|
|
so we extend the variable to 64 bits
|
|
|
|
Index: xemacs-21.5.34/src/buffer.h
|
|
===================================================================
|
|
--- xemacs-21.5.34.orig/src/buffer.h
|
|
+++ xemacs-21.5.34/src/buffer.h
|
|
@@ -246,7 +246,7 @@ struct buffer
|
|
-1 means visited file was nonexistent.
|
|
0 means visited file modtime unknown; in no case complain
|
|
about any mismatch on next save attempt. */
|
|
- int modtime;
|
|
+ long long modtime;
|
|
|
|
/* the value of text->modiff at the last auto-save. */
|
|
long auto_save_modified;
|