summaryrefslogtreecommitdiff
path: root/compat/time32/pthread_timedjoin_np_time32.c
blob: 3ec2995115345144d0d3e1b45e2c9638c21bfb6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#define _GNU_SOURCE
#include "time32.h"
#include <time.h>
#include <pthread.h>

int __pthread_timedjoin_np_time32(pthread_t t, void **res, const struct timespec32 *at32)
{
	return pthread_timedjoin_np(t, res, !at32 ? 0 : (&(struct timespec){
		.tv_sec = at32->tv_sec, .tv_nsec = at32->tv_nsec}));
}