From d0dfa2ba5ef061a9b14f46801073f098823d4721 Mon Sep 17 00:00:00 2001 From: Admin Pupkin Date: Mon, 1 Jun 2026 16:38:40 +0300 Subject: [PATCH] fix: add ac_cv_type_time_t=yes for gnulib cross-compilation Without this cache variable, gnulib's configure incorrectly assumes time_t is unavailable when cross-compiling for Redox, generating broken fallback headers that fail with 'time_t undeclared' at the compile-time integrality check. --- local/recipes/dev/bison/recipe.toml | 1 + local/recipes/dev/m4/recipe.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/local/recipes/dev/bison/recipe.toml b/local/recipes/dev/bison/recipe.toml index 94d48f24fc..22c7a5bad2 100644 --- a/local/recipes/dev/bison/recipe.toml +++ b/local/recipes/dev/bison/recipe.toml @@ -56,6 +56,7 @@ export ac_cv_type_ssize_t=yes export ac_cv_type_ptrdiff_t=yes export ac_cv_type_nlink_t=yes export ac_cv_type_mbstate_t=yes +export ac_cv_type_time_t=yes export gl_cv_type_intmax_t=yes export gl_cv_type_ptrdiff_t_signed=yes export gl_cv_header_inttypes_h_with_uintmax=yes diff --git a/local/recipes/dev/m4/recipe.toml b/local/recipes/dev/m4/recipe.toml index 147b5d5901..9409be0f3c 100644 --- a/local/recipes/dev/m4/recipe.toml +++ b/local/recipes/dev/m4/recipe.toml @@ -65,6 +65,7 @@ export ac_cv_type_ssize_t=yes export ac_cv_type_ptrdiff_t=yes export ac_cv_type_nlink_t=yes export ac_cv_type_mbstate_t=yes +export ac_cv_type_time_t=yes export ac_cv_type_sigset_t=yes export ac_cv_type_posix_spawnattr_t=yes export ac_cv_type_posix_spawn_file_actions_t=yes