aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbutl/process.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbutl/process.cxx b/libbutl/process.cxx
index 72f18ee..c84cb2a 100644
--- a/libbutl/process.cxx
+++ b/libbutl/process.cxx
@@ -513,10 +513,15 @@ namespace butl
//
static const process_exit::status_type status_code (0xFF00);
+ // On Cygwin/MSYS WIFEXITED() is not constexpr. So we will just hope
+ // of the best.
+ //
+#if !defined(__MSYS__) && !defined(__CYGWIN__)
static_assert (WIFEXITED (status_code) &&
WEXITSTATUS (status_code) == 0xFF &&
!WIFSIGNALED (status_code),
"unexpected process exit status bits layout");
+#endif
}
bool process_exit::