[4/9] support: Use 64 bit time_t routines on shell-container

Message ID 20230213171302.3045672-5-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 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/shell-container.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/support/shell-container.c b/support/shell-container.c
index e9ac9b6d04..f3227f2ea3 100644
--- a/support/shell-container.c
+++ b/support/shell-container.c
@@ -17,6 +17,7 @@ 
    <https://www.gnu.org/licenses/>.  */
 
 #define _FILE_OFFSET_BITS 64
+#define _TIME_BITS 64
 
 #include <stdio.h>
 #include <stdlib.h>