Skip to content

Commit

Permalink
[OpenMP] Fix a condition for KMP_OS_SOLARIS. (#71831)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
xingxue-ibm committed Nov 9, 2023
1 parent 72f30ac commit 90a9e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmp/runtime/src/z_Linux_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct kmp_sys_timer {
struct timespec start;
};

#ifdef KMP_OS_SOLARIS
#if KMP_OS_SOLARIS
// Convert timeval to timespec.
#define TIMEVAL_TO_TIMESPEC(tv, ts) \
do { \
Expand Down

0 comments on commit 90a9e9f

Please sign in to comment.