[6/9] support: Use 64 bit time_t routines on support_process_state_wait

Message ID 20230213171302.3045672-7-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_process_state.c | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/support/support_process_state.c b/support/support_process_state.c
index dc2296f8dd..d371456dcb 100644
--- a/support/support_process_state.c
+++ b/support/support_process_state.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 <stdlib.h>
 #include <time.h>
 #include <string.h>