Skip to content

Commit

Permalink
configure: update .h for clock_adjtime
Browse files Browse the repository at this point in the history
man clock_adjtime: #include <sys/timex.h>
for glibc, if _GNU_SOURCE is defined, <time.h> will include <sys/timex.h>
but not for musl, so replce <time.h> to <sys/timex.h>

PS it seems clock_adjtime is used nowhere?

Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
  • Loading branch information
clan committed Jan 13, 2025
1 parent d568885 commit 65b6cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qemu/configure
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ fi
# clock_adjtime probe
clock_adjtime=no
cat > $TMPC <<EOF
#include <time.h>
#include <sys/timex.h>
int main(void)
{
Expand Down

0 comments on commit 65b6cc9

Please sign in to comment.