util: Fixes -Wundef in u_debug_stack_test.cpp
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19926>
This commit is contained in:
@@ -78,7 +78,7 @@ TEST(u_debug_stack_test, basics)
|
||||
debug_backtrace_dump(stored_backtrace, 16);
|
||||
}
|
||||
|
||||
#if _POSIX_C_SOURCE >= 200809L
|
||||
#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
|
||||
|
||||
TEST(u_debug_stack_test, capture_not_overwritten)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user