extinguish opened a new pull request, #17929: URL: https://github.com/apache/nuttx/pull/17929
## Summary Add `#undef OK` before the enum that defines `OK` in `<sys/types.h>` to prevent macro‑definition conflicts when cross‑compiling with external frameworks (notably the VSX/PSE52 test suite) that may define OK as a preprocessor macro. ## Impact 1. Resolves compilation errors where an external OK macro expands incorrectly inside the NuttX type definitions. 2. Ensures the NuttX enum constant OK is used as intended, regardless of macro definitions from third‑party headers. ## Testing 1. Verified that the modified header compiles cleanly both with and without an external OK macro definition. 2. Tested cross‑compilation scenarios with VSX/PSE52 test frameworks to confirm the conflict is resolved. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
