kern_ntptime.c: Add lmax() qmin() definitions

Update #2349.
This commit is contained in:
Gabriel Moyano
2022-05-20 11:29:54 +02:00
committed by Sebastian Huber
parent 9b4212c7b0
commit a3930e8c49

View File

@@ -71,6 +71,8 @@ __FBSDID("$FreeBSD$");
#define ntp_update_second _Timecounter_NTP_update_second
#define time_uptime _Timecounter_Time_uptime
struct thread;
static __inline long lmax(long a, long b) { return (a > b ? a : b); }
static __inline quad_t qmin(quad_t a, quad_t b) { return (a < b ? a : b); }
#endif /* __rtems__ */
#ifndef __rtems__