Skip to content

Commit b095f2f

Browse files
committed
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
1 parent 02ef20a commit b095f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utest/test_fork.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131
3232
**********************************************************************************/
3333

34-
#include "openblas_utest.h"
3534
#include <sys/types.h>
3635
#include <sys/wait.h>
3736
#include <cblas.h>
37+
#include "openblas_utest.h"
3838

3939
void* xmalloc(size_t n)
4040
{

0 commit comments

Comments
 (0)