Avoid redefinition of _GNU_SOURCE
* _GNU_SOURCE may have been set by the application and redefinition
trigger warnings or error with -Werror
* Fix for 220f6a1c5
This commit is contained in:
parent
ea8e208029
commit
029d1e16b9
|
@ -99,6 +99,8 @@ typedef int blasint;
|
||||||
|
|
||||||
/* Inclusion of Linux-specific header is needed for definition of cpu_set_t. */
|
/* Inclusion of Linux-specific header is needed for definition of cpu_set_t. */
|
||||||
#ifdef OPENBLAS_OS_LINUX
|
#ifdef OPENBLAS_OS_LINUX
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#endif
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue