]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: improve use of settimeofday() portability
authorKarel Zak <kzak@redhat.com>
Mon, 11 May 2020 11:35:21 +0000 (13:35 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 22 May 2020 09:51:53 +0000 (11:51 +0200)
commit9c6139a72017cecb9145e46102152cb4f456ada6
tree2bef2d4940d76d64b0715b7b098848254c4331d7
parentfd3a8fda9a20cd83dbd7481a2864f0947f39eb3e
hwclock: improve use of settimeofday() portability

The different libc implements TZ deprecation in settimeofday() library
function in the different way. Let's hide these portability issues and
use directly Linux syscall to set timezone.

Addresses: https://github.com/karelzak/util-linux/issues/995
Signed-off-by: Karel Zak <kzak@redhat.com>
CC: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock.c