amanmaurya92 wrote: @labath I updated as suggested: replaced the preprocessor check with `static_assert(POSIX_CLOSE_RESTART == 0);` and simplified the flag check to if (flag != 0). Thanks! https://github.com/llvm/llvm-project/pull/240024