diff --git a/src/lib/libast/features/lib b/src/lib/libast/features/lib index ca665ccb9..4c1e81d64 100644 --- a/src/lib/libast/features/lib +++ b/src/lib/libast/features/lib @@ -723,3 +723,13 @@ tst no64 -D_LARGEFILE64_SOURCE note{ largefile 64 broken }end execute{ echo "#undef _lib_statvfs64" echo "#undef _lib_truncate64" }end + +tst need64 -D_LARGEFILE64_SOURCE note{ off64_t necessary }end nocompile{ + #include + typedef off64_t __ast_off64_t__; + typedef off_t __ast_off_t__; + extern __ast_off64_t__ x; + __ast_off_t__ x; +}end fail{ + echo "#undef _typ_off64_t" +}end diff --git a/src/lib/libast/features/wchar b/src/lib/libast/features/wchar index 915399494..fc3db8161 100644 --- a/src/lib/libast/features/wchar +++ b/src/lib/libast/features/wchar @@ -16,11 +16,17 @@ lib towlower,towupper stdlib.h stdio.h wchar.h typ mbstate_t stdlib.h stdio.h wchar.h nxt wchar -cat{ +run{ +cat < #include #endif + + #if _hdr_wchar && defined(_nxt_wchar) + #include ${_nxt_wchar-_nxt_wchar} /* the native wchar.h */ + #endif +! }end if tst note{ requires native }end nocompile{ @@ -53,10 +59,6 @@ endif run{ cat <