From b27c990b87df33b56c1568d605a51e512373728c Mon Sep 17 00:00:00 2001 From: Stephen Hurd Date: Wed, 22 Jun 2022 13:01:22 -0400 Subject: [PATCH] comms/wsjtx: Fix build for clang When building with clang, __GNUC__ is still very low, but the fortran we use is newer and expects size_t as the hidden argument specifying character length. --- comms/wsjtx/files/wsjtx.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/comms/wsjtx/files/wsjtx.patch b/comms/wsjtx/files/wsjtx.patch index 64bdf7ac06ac..c1d50ae51849 100644 --- a/comms/wsjtx/files/wsjtx.patch +++ b/comms/wsjtx/files/wsjtx.patch @@ -170,3 +170,14 @@ libfind_process (Hamlib) +--- wsjtx/wsjtx_config.h.in.orig 2022-06-22 04:50:18.818932000 -0400 ++++ wsjtx/wsjtx_config.h.in 2022-06-22 04:50:38.546003000 -0400 +@@ -58,7 +58,7 @@ + #endif + + /* typedef for consistent gfortran ABI for charlen type hidden arguments */ +-#if __GNUC__ > 7 ++#if (__GNUC__ > 7) || defined(__clang__) + #ifdef __cplusplus + #include + #else -- 2.34.1