Skip to content

Commit 160f869

Browse files
authored
Check for SO_MARK in CMake build (#9854)
* Add support for POSIX Cap in CMake build (#9852) This adds a new CMake option that is ON by default: ENABLE_POSIX_CAP. If POSIX cap is not found, the configure step will fail and the user must disable the feature explicitly. * Fix file name * Fix typo * Use check_symbol_exists instead of a compile check
1 parent baaf77f commit 160f869

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ include(find_ccache)
159159

160160
# Check for IO faculties
161161
check_symbol_exists(IN6_IS_ADDR_UNSPECIFIED "netinet/in.h" TS_HAS_IN6_IS_ADDR_UNSPECIFIED)
162+
check_symbol_exists(SO_MARK "sys/socket.h" TS_HAS_SO_MARK)
162163
check_symbol_exists(TLS1_3_VERSION "${OPENSSL_INCLUDE_DIR}/openssl/ssl.h" TS_USE_TLS13)
163164
check_symbol_exists(OPENSSL_NO_TLS1_3 "${OPENSSL_INCLUDE_DIR}/ssl.h" TS_NO_USE_TLS13)
164165
if(TS_NO_USE_TLS13)
165166
set(TS_USE_TLS13 FALSE CACHE)
166167
endif()
167-
168168
check_symbol_exists(epoll_create "sys/epoll.h" TS_USE_EPOLL)
169169
check_symbol_exists(kqueue "sys/event.h" TS_USE_KQUEUE)
170170
set(CMAKE_REQUIRED_LIBRARIES uring)

include/tscore/ink_config.h.cmake.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ const int DEFAULT_STACKSIZE = @DEFAULT_STACK_SIZE@;
116116
#cmakedefine01 TS_HAS_JEMALLOC
117117
#cmakedefine01 TS_HAS_TCMALLOC
118118
#cmakedefine01 TS_HAS_PROFILER
119+
#cmakedefine01 TS_HAS_SO_MARK
119120
#cmakedefine01 TS_USE_DIAGS
120121
#cmakedefine01 TS_USE_EPOLL
121122
#cmakedefine01 TS_USE_FAST_SDK

0 commit comments

Comments
 (0)