Skip to content

Commit

Permalink
configure: Use string for tm_zone assignment
Browse files Browse the repository at this point in the history
This matches what the actual sources do.  Clang 16 and GCC 14
no longer support converting ints to pointers implicitly, so the
configure probe always fails with these compilers.
  • Loading branch information
fweimer-rh committed Dec 18, 2023
1 parent 8487d23 commit b3cf5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ AC_CACHE_CHECK(for tm_zone in struct tm, ac_cv_struct_tm_zone,
#include <time.h>
], [
struct tm tm;
tm.tm_zone = 1;
tm.tm_zone = (char*)"UTC";
])],
[ac_cv_struct_tm_zone=yes],
[ac_cv_struct_tm_zone=no]
Expand Down

0 comments on commit b3cf5be

Please sign in to comment.