osdep: add wait.h compat macros
commit28012e190e6897cfc2a98364240909d08e90ffc0
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 24 May 2018 18:09:52 +0000 (24 21:09 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 24 May 2018 18:14:11 +0000 (24 21:14 +0300)
treed4b6a3f1a160acbcc2f061805739219bc0bb248a
parente3af2928f8270498097af163bb023b633c0d8d1c
osdep: add wait.h compat macros

Man page for WCOREDUMP says:

  WCOREDUMP(wstatus) returns true if the child produced a core dump.
  This macro should be employed only if WIFSIGNALED returned true.

  This  macro  is  not  specified  in POSIX.1-2001 and is not
  available on some UNIX implementations (e.g., AIX, SunOS).  Therefore,
  enclose its use inside #ifdef WCOREDUMP ... #endif.

Let's do exactly this.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/qemu/osdep.h