Commit 4064f7ab authored by Youness Alaoui's avatar Youness Alaoui

fix POSIX_MONOTIC_CLOCK check in stun timer

parent 2356cd66
......@@ -62,7 +62,7 @@
*/
static void stun_gettime (struct timespec *restrict now)
{
#if (_POSIX_MONOTONIC_CLOCK - 0) >= 0
#if defined (_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK >= 0)
if (clock_gettime (CLOCK_MONOTONIC, now))
#endif
{ // fallback to wall clock
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment