diff --git a/frame/include/bli_system.h b/frame/include/bli_system.h index 084999ab5..d91df6803 100644 --- a/frame/include/bli_system.h +++ b/frame/include/bli_system.h @@ -36,6 +36,12 @@ #ifndef BLIS_SYSTEM_H #define BLIS_SYSTEM_H +// NOTE: If not yet defined, we define _POSIX_C_SOURCE to make sure that +// various parts of POSIX are defined and made available. +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L +#endif + #include #include #include @@ -111,7 +117,8 @@ #elif BLIS_OS_OSX #include #else - #include + //#include + #include #endif diff --git a/frame/util/bli_util_unb_var1.c b/frame/util/bli_util_unb_var1.c index 32197819a..a12cdbd5c 100644 --- a/frame/util/bli_util_unb_var1.c +++ b/frame/util/bli_util_unb_var1.c @@ -466,7 +466,7 @@ void PASTEMAC(ch,varname) \ /* If the absolute value of the current element exceeds that of the previous largest, save it and its index. If NaN is encountered, then treat it the same as if it were a valid - value that was smaller than any previously seen. This + value that was larger than any previously seen. This behavior mimics that of LAPACK's ?lange(). */ \ if ( abs_chi1_max < abs_chi1 || bli_isnan( abs_chi1 ) ) \ { \