linux-user: Fix incorrect use of feature-test-macros
commitfebf6fade63801ebca765797fa2ad9de8d9f2700
authorMichael Forney <mforney@mforney.org>
Wed, 26 May 2021 03:55:31 +0000 (25 20:55 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 20 Jun 2021 14:40:11 +0000 (20 16:40 +0200)
treec7f4343f90beac729d0260d7b4bd64fd8381890a
parent8a589aeb271bb470884f960e76cd6a7c89c022c9
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: Michael Forney <mforney@mforney.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210526035531.7871-1-mforney@mforney.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c