Skip to content

Commit 54ffe28

Browse files
authored
Merge pull request #3310 from jeromerobert/develop
Avoid redefinition of _GNU_SOURCE
2 parents ea8e208 + 029d1e1 commit 54ffe28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openblas_config_template.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ typedef int blasint;
9999

100100
/* Inclusion of Linux-specific header is needed for definition of cpu_set_t. */
101101
#ifdef OPENBLAS_OS_LINUX
102-
#define _GNU_SOURCE
102+
#ifndef _GNU_SOURCE
103+
#define _GNU_SOURCE
104+
#endif
103105
#include <sched.h>
104106
#endif

0 commit comments

Comments
 (0)