Fix unknown type name __WAIT_STATUS on RHEL5
authorJerome Robert <jeromerobert@gmx.com>
Thu, 4 Oct 2018 10:27:44 +0000 (12:27 +0200)
committerJerome Robert <jeromerobert@gmx.com>
Thu, 4 Oct 2018 12:37:08 +0000 (14:37 +0200)
commitb095f2fad651d3134b5760d25acda686f3a831b7
tree82d29aa1401443c722963d29ae0b0e5a4fb638db
parent02ef20a1e403b063cd9b58f8b1bcd50fba6a9afe
Fix unknown type name __WAIT_STATUS on RHEL5

With glibc 2.5 one must have #define _XOPEN_SOURCE >= 500 to use wait.
But reading glibc code this is actually needed only if stdlib.h was
included before sys/wait.h. This was the case here through
openblas_utest.h. So changing include fix compilation on RHEL5 and
should ne hurt with more recent distro.

* Problem found when using with gcc 5.5 and 4.7.2 on RHEL5/CENTOS5
* Fix #1519
utest/test_fork.c