Skip to content

Commit

Permalink
apacheGH-43808: [C++] set kStrptimeSupportsZone to false for old glibc
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Nov 2, 2024
1 parent b88d648 commit e2ad91a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/src/arrow/util/value_parsing.h
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,9 @@ static inline bool ParseTimestampISO8601(const char* s, size_t length,

#if defined(_WIN32) || defined(ARROW_WITH_MUSL)
static constexpr bool kStrptimeSupportsZone = false;
#elif defined(__GLIBC__) && defined(__GLIBC_MINOR__) && (__GLIBC__ == 2) && (__GLIBC_MINOR__ < 28)
// see https://github.com/apache/arrow/issues/43808
static constexpr bool kStrptimeSupportsZone = false;
#else
static constexpr bool kStrptimeSupportsZone = true;
#endif
Expand Down

0 comments on commit e2ad91a

Please sign in to comment.