From 181a3fa5e4c242d72d311f5baa771c680647eda7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 17 Feb 2021 10:58:29 +0100 Subject: swrap: wrap __close_nocancel() if available While it's no possible to inject swrap__close_nocancel() into libc.so.6 directly, because it's no weak symbol, it seems to be possible to inject it to other glibc libraries like libpthread.so.0, which is better than nothing. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14640 Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- ConfigureChecks.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index bfb8c17..2c78b83 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -74,6 +74,7 @@ check_function_exists(getexecname HAVE_GETEXECNAME) check_function_exists(pledge HAVE_PLEDGE) check_function_exists(_socket HAVE__SOCKET) check_function_exists(_close HAVE__CLOSE) +check_function_exists(__close_nocancel HAVE___CLOSE_NOCANCEL) if (UNIX) find_library(DLFCN_LIBRARY dl) -- cgit