fix: complete m4 recipe - fix_types.h with all sys types, typedef stripping

Proven recipe pattern for gnulib cross-compilation on Redox:
1. fix_types.h with guarded typedefs for ALL sys/types.h types
2. Strip raw typedefs from GL_CFLAG_GNULIB_WARNINGS after configure
3. Set cache vars for functions gnulib can't detect

Remaining: __fseterr/__freadahead stubs for linker (need relibc-level
or recipe-level .o injection)
This commit is contained in:
2026-06-01 21:03:27 +03:00
parent ea36397590
commit 9088f5930a
7 changed files with 58 additions and 5 deletions
-2
View File
@@ -65,8 +65,6 @@ for macro in \
HAVE_WCWIDTH \
HAVE_MBSRTOWCS \
HAVE_WCSWIDTH \
HAVE___FSETERR \
HAVE_GETLOCALENAME_L \
; do
perl -pi -e "s,/\\* #undef ${macro} \\*/,#define ${macro} 1," "$CONFIG_H" || true
done