From 3684794336602435b91b91a1dc5bd9401a974432 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 2 Feb 2023 12:56:16 -0800 Subject: vcl: better handlig of ldp apis that rely on gnu source Control use of apis that rely on _GNU_SOURCE being defined with compile time macro. Also fixes sendmmsg and recvmmsg which were not probably wrapped. Type: improvement Signed-off-by: Florin Coras Change-Id: I207de23210d4b9dc960bb4289159502760c5614d --- src/vcl/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/vcl/CMakeLists.txt') diff --git a/src/vcl/CMakeLists.txt b/src/vcl/CMakeLists.txt index e6d8f98ffed..610b422d113 100644 --- a/src/vcl/CMakeLists.txt +++ b/src/vcl/CMakeLists.txt @@ -30,6 +30,11 @@ add_vpp_library(vppcom api_headers ) +option(LDP_HAS_GNU_SOURCE "LDP configured to use _GNU_SOURCE" ON) +if (LDP_HAS_GNU_SOURCE) + add_compile_definitions(HAVE_GNU_SOURCE) +endif(LDP_HAS_GNU_SOURCE) + add_vpp_library(vcl_ldpreload SOURCES ldp_socket_wrapper.c -- cgit 1.2.3-korg