From 54ff28a47fa5fbadcd87b29b747e976fe5ba3539 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Thu, 7 Aug 2025 14:59:11 +0800 Subject: [PATCH] sys/types.h: Fixed the conflict issue with the "OK" constant definition When cross-compiling PSE52 VSX testcases based on Vela, VSX defines its own "OK" constant as a macro, which conflicts with the "OK" constant defined as an enum in . To ensure compatibility, we have undef'd the macro version of "OK" in advance. Signed-off-by: guoshichao --- include/sys/types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/sys/types.h b/include/sys/types.h index 71636dd1a05..51b190ae322 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -317,6 +317,10 @@ typedef CODE int (*main_t)(int argc, FAR char *argv[]); /* POSIX-like OS return values: */ +#ifdef OK +# undef OK +#endif + enum { ERROR = -1,