From: Jerome Robert Date: Thu, 4 Oct 2018 10:27:44 +0000 (+0200) Subject: Fix unknown type name __WAIT_STATUS on RHEL5 X-Git-Tag: v0.3.4~1^2~49^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b095f2fad651d3134b5760d25acda686f3a831b7;p=platform%2Fupstream%2Fopenblas.git 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 --- diff --git a/utest/test_fork.c b/utest/test_fork.c index 9fc5128..0b90407 100644 --- a/utest/test_fork.c +++ b/utest/test_fork.c @@ -31,10 +31,10 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **********************************************************************************/ -#include "openblas_utest.h" #include #include #include +#include "openblas_utest.h" void* xmalloc(size_t n) {