This is an automated email from the ASF dual-hosted git repository. maskit pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 16f006b1d5 Remove HAVE_ALLOCA_H build var (#10782) 16f006b1d5 is described below commit 16f006b1d564f2a58d55afef82ac36ffdfcf90c9 Author: Phong Nguyen <pho...@gmail.com> AuthorDate: Thu Nov 16 11:38:00 2023 -0800 Remove HAVE_ALLOCA_H build var (#10782) --- CMakeLists.txt | 1 - include/tscore/ink_config.h.cmake.in | 1 - include/tscore/ink_platform.h | 2 +- src/iocore/eventsystem/UnixEventProcessor.cc | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef1d35a359..2def626795 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,7 +216,6 @@ include(CheckTypeSize) include(CheckSourceCompiles) include(CheckStructHasMember) -check_include_file(alloca.h HAVE_ALLOCA_H) check_include_file(cpio.h HAVE_CPIO_H) check_include_file(dlfcn.h HAVE_DLFCN_H) check_include_file(float.h HAVE_FLOAT_H) diff --git a/include/tscore/ink_config.h.cmake.in b/include/tscore/ink_config.h.cmake.in index d699b1763c..fad23b5bcf 100644 --- a/include/tscore/ink_config.h.cmake.in +++ b/include/tscore/ink_config.h.cmake.in @@ -32,7 +32,6 @@ #cmakedefine BUILD_GROUP "@BUILD_GROUP@" #define BUILD_NUMBER "@BUILD_NUMBER@" -#cmakedefine HAVE_ALLOCA_H 1 #cmakedefine HAVE_BROTLI_ENCODE_H 1 #cmakedefine HAVE_CLOCK_GETTIME 1 #cmakedefine HAVE_CURSES_H 1 diff --git a/include/tscore/ink_platform.h b/include/tscore/ink_platform.h index 7ed6cff3b2..bce467906e 100644 --- a/include/tscore/ink_platform.h +++ b/include/tscore/ink_platform.h @@ -122,7 +122,7 @@ struct ifafilt; #ifdef HAVE_VALUES_H #include <values.h> #endif -#ifdef HAVE_ALLOCA_H +#if __has_include(<alloca.h>) #include <alloca.h> #endif diff --git a/src/iocore/eventsystem/UnixEventProcessor.cc b/src/iocore/eventsystem/UnixEventProcessor.cc index 493c5f116f..37e4c0c882 100644 --- a/src/iocore/eventsystem/UnixEventProcessor.cc +++ b/src/iocore/eventsystem/UnixEventProcessor.cc @@ -24,7 +24,7 @@ #include "P_EventSystem.h" #include <sched.h> #if TS_USE_HWLOC -#if HAVE_ALLOCA_H +#if __has_include(<alloca.h>) #include <alloca.h> #endif #include <hwloc.h>