Skip to content

Commit 90a9e9f

Browse files
authored
[OpenMP] Fix a condition for KMP_OS_SOLARIS. (#71831)
Line 75 of `z_Linux_util.cpp` checks `#ifdef KMP_OS_SOLARIS` which is always true regardless of the building platform because macro `KMP_OS_SOLARIS` is always defined in line 23 of `kmp_platform.h`: `define KMP_OS_SOLARIS 0`.
1 parent 72f30ac commit 90a9e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openmp/runtime/src/z_Linux_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct kmp_sys_timer {
7272
struct timespec start;
7373
};
7474

75-
#ifdef KMP_OS_SOLARIS
75+
#if KMP_OS_SOLARIS
7676
// Convert timeval to timespec.
7777
#define TIMEVAL_TO_TIMESPEC(tv, ts) \
7878
do { \

0 commit comments

Comments
 (0)