]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
configure: Add sys/timex.h to probe clock_adjtime
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Mon, 18 Jan 2021 06:38:00 +0000 (14:38 +0800)
committerThomas Huth <thuth@redhat.com>
Wed, 20 Jan 2021 09:42:03 +0000 (10:42 +0100)
It is not a part of standard time.h. Glibc put it under
time.h however musl treat it as a sys timex extension.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210118063808.12471-2-jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
configure

index 9f016b06b54f08ab3533249da23a74a970c98786..6f6a319c2f65d5a69e049069c0eda5928e2ad1c7 100755 (executable)
--- a/configure
+++ b/configure
@@ -4039,6 +4039,7 @@ fi
 clock_adjtime=no
 cat > $TMPC <<EOF
 #include <time.h>
+#include <sys/timex.h>
 
 int main(void)
 {