From: Joachim Metz <joachim.metz@gmail.com>
Date: Tue, 26 Jul 2022 09:52:33 +0200
Subject: Fix timestamp types

Origin: backport, https://github.com/libyal/libevt/commit/0cfd8e0b618cefc70c74a794b7de362308e37dae
Bug-Debian: https://bugs.debian.org/1091579
Last-Update: 2025-01-14
---
 evttools/message_handle.c | 13 ++-----------
 evttools/resource_file.c  | 11 +----------
 2 files changed, 3 insertions(+), 21 deletions(-)

diff --git a/evttools/message_handle.c b/evttools/message_handle.c
index 43fc08a..96f7ff3 100644
--- a/evttools/message_handle.c
+++ b/evttools/message_handle.c
@@ -26,15 +26,6 @@
 #include <types.h>
 #include <wide_string.h>
 
-#if defined( TIME_WITH_SYS_TIME )
-#include <sys/time.h>
-#include <time.h>
-#elif defined( HAVE_SYS_TIME_H )
-#include <sys/time.h>
-#else
-#include <time.h>
-#endif
-
 #include "evttools_libcdirectory.h"
 #include "evttools_libcerror.h"
 #include "evttools_libcpath.h"
@@ -2961,7 +2952,7 @@ int message_handle_get_resource_file(
      libcerror_error_t **error )
 {
 	static char *function = "message_handle_get_resource_file";
-	time_t timestamp      = 0;
+	int64_t timestamp     = 0;
 
 	if( message_handle == NULL )
 	{
@@ -3196,7 +3187,7 @@ int message_handle_get_mui_resource_file(
      libcerror_error_t **error )
 {
 	static char *function = "message_handle_get_mui_resource_file";
-	time_t timestamp      = 0;
+	int64_t timestamp     = 0;
 
 	if( message_handle == NULL )
 	{
diff --git a/evttools/resource_file.c b/evttools/resource_file.c
index 784e07f..118a753 100644
--- a/evttools/resource_file.c
+++ b/evttools/resource_file.c
@@ -26,15 +26,6 @@
 #include <types.h>
 #include <wide_string.h>
 
-#if defined( TIME_WITH_SYS_TIME )
-#include <sys/time.h>
-#include <time.h>
-#elif defined( HAVE_SYS_TIME_H )
-#include <sys/time.h>
-#else
-#include <time.h>
-#endif
-
 #include "evttools_libbfio.h"
 #include "evttools_libcerror.h"
 #include "evttools_libexe.h"
@@ -873,7 +864,7 @@ int resource_file_get_message_string(
 {
 	static char *function        = "resource_file_get_message_string";
 	uint32_t language_identifier = 0;
-	time_t timestamp             = 0;
+	int64_t timestamp            = 0;
 	int result                   = 0;
 
 	if( resource_file == NULL )
