mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 08:00:15 +02:00
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 <hello@peppergray.xyz>
This commit is contained in:
1 parent
df73e84725
commit
3ee556d858
1 file changed
+4
@@ -147,6 +147,10 @@ struct fex_gen_type<snd_timer_t> : fexgen::opaque_type {};
|
||||
template<>
|
||||
struct fex_gen_type<snd_timestamp_t> : fexgen::opaque_type {};
|
||||
|
||||
// has empty padding members on musl
|
||||
template<>
|
||||
struct fex_gen_type<snd_htimestamp_t> : fexgen::assume_compatible_data_layout {};
|
||||
|
||||
template<>
|
||||
struct fex_gen_type<FILE> : fexgen::opaque_type {};
|
||||
|
||||
|
||||
Reference in new issue
Block a user