1
0
forked from aniani/vim

patch 7.4.1955

Problem:    Using 32-bit Perl with 64-bit time_t causes memory corruption.
            (Christian Brabandt)
Solution:   Use time_T instead of time_t for global variables. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2016-06-26 16:44:24 +02:00
parent d388d2ac8b
commit f4fba6dcd5
8 changed files with 34 additions and 21 deletions

View File

@@ -1608,7 +1608,7 @@ EXTERN int xsmp_icefd INIT(= -1); /* The actual connection */
#endif
/* For undo we need to know the lowest time possible. */
EXTERN time_t starttime;
EXTERN time_T starttime;
#ifdef STARTUPTIME
EXTERN FILE *time_fd INIT(= NULL); /* where to write startup timing */
@@ -1640,7 +1640,7 @@ EXTERN int did_add_timer INIT(= FALSE);
#endif
#ifdef FEAT_EVAL
EXTERN time_t time_for_testing INIT(= 0);
EXTERN time_T time_for_testing INIT(= 0);
#endif
/*