LinuxKPI: add ns_to_timespec64()

Add ns_to_timespec64() which does not seem to require anything from
us given timespec64 is aliases to timespec.

Sponsored by:	The FreeBSD Foundation
MFC after:	10 days
Reviewed by:	hselasky
Differential Revision: https://reviews.freebsd.org/D40123
This commit is contained in:
Bjoern A. Zeeb 2023-05-16 21:00:45 +00:00
parent 2e57f7bf20
commit 71fde8e507

View file

@ -121,6 +121,8 @@ ns_to_timespec(const int64_t nsec)
return (ts);
}
#define ns_to_timespec64(_x) ns_to_timespec(_x)
static inline int
timespec_valid(const struct timespec *ts)
{