odhcpd: fix compilation with musl 1.2.0
authorRosen Penev <rosenp@gmail.com>
Thu, 26 Mar 2020 23:07:12 +0000 (16:07 -0700)
committerHans Dedecker <dedeckeh@gmail.com>
Sat, 28 Mar 2020 08:19:37 +0000 (09:19 +0100)
commitfbf14aee4ad321ac3702b60ff8193d82812c2270
tree660a0268d89f1fc436d3a6ab0a54864752e134db
parent6594c6b182a9065570316cf3a7a6a72a7afda150
odhcpd: fix compilation with musl 1.2.0

SYS_clock_gettime is gone with musl 1.2.0. Switched to the function.

Also fixed two format strings that fail as time_t is 64-bit with 1.2.0.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
src/dhcpv6-ia.c
src/odhcpd.c