diff --git a/openblas_config_template.h b/openblas_config_template.h index 1e17c9a16..6a7382108 100644 --- a/openblas_config_template.h +++ b/openblas_config_template.h @@ -99,6 +99,8 @@ typedef int blasint; /* Inclusion of Linux-specific header is needed for definition of cpu_set_t. */ #ifdef OPENBLAS_OS_LINUX -#define _GNU_SOURCE +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif #include #endif