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

Message ID 20230213171302.3045672-10-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
dj/TryBot-32bit success Build for i686

Commit Message

Adhemerval Zanella Feb. 13, 2023, 5:13 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/xmkdirp.c | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/support/xmkdirp.c b/support/xmkdirp.c
index 5a47153720..d3009cdf78 100644
--- a/support/xmkdirp.c
+++ b/support/xmkdirp.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 <support/support.h>
 #include <support/check.h>
 #include <support/xunistd.h>