xref: /aosp_15_r20/external/musl/compat/time32/pthread_timedjoin_np_time32.c (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1 #define _GNU_SOURCE
2 #include "time32.h"
3 #include <time.h>
4 #include <pthread.h>
5 
__pthread_timedjoin_np_time32(pthread_t t,void ** res,const struct timespec32 * at32)6 int __pthread_timedjoin_np_time32(pthread_t t, void **res, const struct timespec32 *at32)
7 {
8 	return pthread_timedjoin_np(t, res, !at32 ? 0 : (&(struct timespec){
9 		.tv_sec = at32->tv_sec, .tv_nsec = at32->tv_nsec}));
10 }
11