[2/9] support: Use 64 bit time_t routines on support_stat_nanoseconds

Message ID 20230213171302.3045672-3-adhemerval.zanella@linaro.org
State Superseded
Headers
Series Use 64 bit time_t routines on support |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

Adhemerval Zanella Netto Feb. 13, 2023, 5:12 p.m. UTC
  The failure only shows if the system time is set past 2038.

Checked on i686-linux-gnu and on system emulated arm-linux-gnueabihf
with time set past y2038.
---
 support/support_stat_nanoseconds.c | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/support/support_stat_nanoseconds.c b/support/support_stat_nanoseconds.c
index bf833d6e95..27624daa7b 100644
--- a/support/support_stat_nanoseconds.c
+++ b/support/support_stat_nanoseconds.c
@@ -16,6 +16,9 @@ 
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+#define _FILE_OFFSET_BITS 64
+#define _TIME_BITS 64
+
 #include <errno.h>
 #include <fcntl.h>
 #include <support/check.h>