Mercurial > octave
changeset 32377:94ba5c27d895
Make Octave buildable on Debian 32bit
Use long in file_time(), since octave_gettimeofday_wrapper() expects *long, and
time_t is long long on e.g. Debian 32bit which wont compile.
* liboctave/system/oct-time.cc: time_t -> long
author | Petter |
---|---|
date | Sat, 07 Oct 2023 01:33:56 +0200 |
parents | 262768aefb8b |
children | a2a04f9d56f8 |
files | liboctave/system/oct-time.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/system/oct-time.cc Sat Oct 07 00:50:18 2023 +0200 +++ b/liboctave/system/oct-time.cc Sat Oct 07 01:33:56 2023 +0200 @@ -382,7 +382,7 @@ | curr_file_time.dwLowDateTime; #else time_t ot_unix_time; - time_t ot_usec; + long ot_usec; octave_gettimeofday_wrapper (&ot_unix_time, &ot_usec); // Discard usec. We are assuming a 1 second resolution anyway. m_time = ot_unix_time;