Skip to content

Commit a78d690

Browse files
authored
configure: add <sys/timex.h> for clock_adjtime on musl (#2085)
for glibc, if _GNU_SOURCE is defined, <time.h> will include <sys/timex.h> but not for musl, so add "#include <sys/timex.h>" although `man clock_adjtime` said "#include <sys/timex.h>", but it won't work for glibc w/o "#include <time.h>", I don't known why yet. PS it seems clock_adjtime is used nowhere? Signed-off-by: Z. Liu <[email protected]>
1 parent 9682fc4 commit a78d690

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qemu/configure

+1
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,7 @@ fi
14551455
clock_adjtime=no
14561456
cat > $TMPC <<EOF
14571457
#include <time.h>
1458+
#include <sys/timex.h>
14581459
14591460
int main(void)
14601461
{

0 commit comments

Comments
 (0)