Skip to content
Snippets Groups Projects
Commit febf6fad authored by Michael Forney's avatar Michael Forney Committed by Laurent Vivier
Browse files

linux-user: Fix incorrect use of feature-test-macros


The _POSIX_C_SOURCE and _XOPEN_SOURCE macros are used by the
application to indicate to libc which declarations it should expose.
Since qemu does not define them anywhere, it does not make sense
to check their value.

Instead, since the intent is to determine whether the host struct
stat supports the st_*tim fields, use the configure test result
which does exactly that.

Signed-off-by: default avatarMichael Forney <mforney@mforney.org>
Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
Message-Id: <20210526035531.7871-1-mforney@mforney.org>
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent 8a589aeb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment