odhcp6c: fix compilation with musl 1.2.0
authorRosen Penev <rosenp@gmail.com>
Wed, 25 Mar 2020 23:15:25 +0000 (16:15 -0700)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 26 Mar 2020 19:49:13 +0000 (20:49 +0100)
commit49305e6847efa43e008d0bebdc176e1833120947
treec3a36c55c4dedd05a553bc0256f45e92bfd33da1
parente199804b602a48eb69f0752584c0ad28495b82ad
odhcp6c: fix compilation with musl 1.2.0

SYS_clock_gettime is gone with musl 1.2.0. Switch to using the normal
function.

This was done back in the day when uClibc was used when librt was
separate.

Removed struct initialization since it gets written to right after.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/odhcp6c.c