Skip to content

Commit 5ce8225

Browse files
committed
Merge branch 'macos/sasl' into v1.x
2 parents 66ad4dc + 07ff2f6 commit 5ce8225

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CMake/_Include.cmake

+5
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ if(ENABLE_SASL)
131131
if(HAVE_LIBSASL)
132132
set(LIBMEMCACHED_WITH_SASL_SUPPORT 1)
133133
pkgconfig_export(REQUIRES libsasl2)
134+
cmake_push_check_state()
135+
set(CMAKE_REQUIRED_INCLUDES "${LIBSASL_INCLUDEDIR}")
136+
set(CMAKE_REQUIRED_LIBRARIES "${LIBSASL_LIBRARIES}")
137+
check_symbol(sasl_client_done sasl/sasl.h)
138+
cmake_pop_check_state()
134139
endif()
135140
endif()
136141

src/libmemcached/sasl.cc

+4
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ static memcached_return_t resolve_names(memcached_instance_st &server, char *lad
9292
extern "C" {
9393

9494
static void sasl_shutdown_function() {
95+
#if HAVE_SASL_CLIENT_DONE
96+
(void) sasl_client_done();
97+
#else
9598
sasl_done();
99+
#endif
96100
}
97101

98102
static std::atomic<int> sasl_startup_state(SASL_OK);

0 commit comments

Comments
 (0)