This is an automated email from the ASF dual-hosted git repository.
eze pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new af0142cef9 Make 9.2.x buildable on macOS 26 (#12834)
af0142cef9 is described below
commit af0142cef91d65c3233968e450d79f2aa259194e
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Mon Feb 23 16:02:11 2026 -0700
Make 9.2.x buildable on macOS 26 (#12834)
* Make 9.2.x buildable on macOS 26
---
configure.ac | 10 +++++++++-
include/tscore/ink_endian.h | 2 ++
iocore/net/QUICNetVConnection.cc | 2 --
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5421df1d0a..6c249064ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -658,6 +658,11 @@ AM_PROG_AS
AX_COMPILER_VENDOR
+AC_MSG_CHECKING([for C compiler version])
+# Capture the output of the compiler version command
+ac_cv_c_compiler_version=`${CC} --version 2>&1 | grep "Apple clang version" |
head -n 1 | awk '{print $4}' | cut -d'.' -f1`
+AC_MSG_RESULT([$ac_cv_c_compiler_version])
+
AX_CC_FOR_BUILD
CFLAGS="${_ts_saved_CFLAGS}"
@@ -848,6 +853,9 @@ AS_IF([test "x${has_optimizer_flags}" = "xno"],
]
)
+AS_IF([test "x$ac_cv_c_compiler_version" = "x17"],
[NO_WARN_CAST_FUNCTION_TYPE_MISMATCH="-Wno-cast-function-type-mismatch"],
[NO_WARN_CAST_FUNCTION_TYPE_MISMATCH=""])
+AC_SUBST([NO_WARN_CAST_FUNCTION_TYPE_MISMATCH])
+
case $host_os_def in
linux)
AS_IF([test "x$ax_cv_c_compiler_vendor" = "xintel"], [
@@ -885,7 +893,7 @@ case $host_os_def in
darwin)
AS_IF([test "x$ax_cv_c_compiler_vendor" = "xclang"], [
- common_opt="-pipe -Wall -Wno-deprecated-declarations -Qunused-arguments
-Wextra -Wno-ignored-qualifiers -Wno-unused-parameter"
+ common_opt="-pipe -Wall -Wno-deprecated-declarations -Qunused-arguments
-Wextra -Wno-ignored-qualifiers -Wno-unused-parameter -Wno-vla-extension
$NO_WARN_CAST_FUNCTION_TYPE_MISMATCH"
debug_opt="-g $common_opt"
release_opt="-g $common_opt $optimizing_flags -fno-strict-aliasing"
cxx_opt="-Wno-invalid-offsetof"
diff --git a/include/tscore/ink_endian.h b/include/tscore/ink_endian.h
index 539c835412..337a0ba44a 100644
--- a/include/tscore/ink_endian.h
+++ b/include/tscore/ink_endian.h
@@ -26,8 +26,10 @@
#include "tscore/ink_config.h"
#ifdef HAVE_SYS_ENDIAN_H
+#if !defined(darwin)
#include <sys/endian.h>
#endif
+#endif
#ifdef HAVE_MACHINE_ENDIAN_H
#include <machine/endian.h>
#endif
diff --git a/iocore/net/QUICNetVConnection.cc b/iocore/net/QUICNetVConnection.cc
index 5c52a188d3..17b7d9ad0c 100644
--- a/iocore/net/QUICNetVConnection.cc
+++ b/iocore/net/QUICNetVConnection.cc
@@ -1654,7 +1654,6 @@ QUICNetVConnection::_packetize_frames(uint8_t
*packet_buf, QUICEncryptionLevel l
max_frame_size = std::min(max_frame_size,
this->_maximum_stream_frame_data_size());
bool probing = false;
- int frame_count = 0;
size_t len = 0;
Ptr<IOBufferBlock> first_block =
make_ptr<IOBufferBlock>(new_IOBufferBlock());
Ptr<IOBufferBlock> last_block = first_block;
@@ -1691,7 +1690,6 @@ QUICNetVConnection::_packetize_frames(uint8_t
*packet_buf, QUICEncryptionLevel l
break;
}
- ++frame_count;
probing |= frame->is_probing_frame();
if (frame->is_flow_controlled()) {
int ret =
this->_remote_flow_controller->update(this->_stream_manager->total_offset_sent());