]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - include/posixwait.h
bash-5.1 distribution sources and documentation
[thirdparty/bash.git] / include / posixwait.h
index 815ea22992478370c33213261bc78f362daf5690..63b59c24a8814ca94cd1f6b66d87d90905c14234 100644 (file)
@@ -77,7 +77,11 @@ typedef int WAIT;
 #  endif /* !WIFSIGNALED */
 
 #  if !defined (WIFCORED)
-#    define WIFCORED(s)       ((s) & 0200)
+#    if defined (WCOREDUMP)
+#      define WIFCORED(s)      (WCOREDUMP(s))
+#    else
+#      define WIFCORED(s)       ((s) & 0200)
+#    endif
 #  endif /* !WIFCORED */
 
 #else /* !_POSIX_VERSION */