From 3ee556d858073dfdcf5b1f975dee64d96487093d Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 25 May 2026 18:17:12 +0200 Subject: [PATCH] add template for snd_htimestamp_t building on musl fails with: `error: Unsupported parameter type 'snd_htimestamp_t *' (aka 'timespec *')` due to empty padding members in `alltypes.h`: ``` STRUCT timespec { time_t tv_sec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER==4321); long tv_nsec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER!=4321); }; ``` add (missing) annotation to libasound interface fix: #5513 Signed-off-by: Pepper Gray --- ThunkLibs/libasound/libasound_interface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ThunkLibs/libasound/libasound_interface.cpp b/ThunkLibs/libasound/libasound_interface.cpp index 0f09f7559..3b76d268f 100644 --- a/ThunkLibs/libasound/libasound_interface.cpp +++ b/ThunkLibs/libasound/libasound_interface.cpp @@ -147,6 +147,10 @@ struct fex_gen_type : fexgen::opaque_type {}; template<> struct fex_gen_type : fexgen::opaque_type {}; +// has empty padding members on musl +template<> +struct fex_gen_type : fexgen::assume_compatible_data_layout {}; + template<> struct fex_gen_type : fexgen::opaque_type {};