From: Dmitry Shachnev <mitya57@debian.org>
Date: Sat, 6 Apr 2024 00:01:07 +0300
Subject: Fix build with 64-bit time_t on 32-bit architectures

In such configurations, input_event struct does not have time member,
and it has __sec and __usec members instead.

input_event_sec and input_event_usec are macros that expand to
time.tv_sec/time.tv_usec or __sec/__usec, depending on the time_t
configuration.

See this Linux commit for more information:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f0323

Forwarded: https://sourceforge.net/p/flightgear/flightgear/merge-requests/342/
---
 src/Input/FGLinuxEventInput.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Input/FGLinuxEventInput.cxx b/src/Input/FGLinuxEventInput.cxx
index 60be218..9d68331 100644
--- a/src/Input/FGLinuxEventInput.cxx
+++ b/src/Input/FGLinuxEventInput.cxx
@@ -415,8 +415,8 @@ void FGLinuxInputDevice::Send( const char * eventName, double value )
   evt.type=typeCode.type;
   evt.code = typeCode.code;
   evt.value = (long)value;
-  evt.time.tv_sec = 0;
-  evt.time.tv_usec = 0;
+  evt.input_event_sec = 0;
+  evt.input_event_usec = 0;
   size_t bytes_written = write(fd, &evt, sizeof(evt));
 
   if( bytes_written == sizeof(evt) )
