X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Flibmemcached%2Fsasl.cc;h=90f663a1262453deb530dfa4a4637b2d9b900371;hb=refs%2Fheads%2Fv1.x;hp=4fa981d285cf6a03c047d1acd1ebbaa391e49932;hpb=2f289c64f625962d945ec3bee80f36bc5c61ee35;p=awesomized%2Flibmemcached diff --git a/src/libmemcached/sasl.cc b/src/libmemcached/sasl.cc index 4fa981d2..90f663a1 100644 --- a/src/libmemcached/sasl.cc +++ b/src/libmemcached/sasl.cc @@ -1,6 +1,6 @@ /* +--------------------------------------------------------------------+ - | libmemcached - C/C++ Client Library for memcached | + | libmemcached-awesome - C/C++ Client Library for memcached | +--------------------------------------------------------------------+ | Redistribution and use in source and binary forms, with or without | | modification, are permitted under the terms of the BSD license. | @@ -9,12 +9,11 @@ | the terms online at: https://opensource.org/licenses/BSD-3-Clause | +--------------------------------------------------------------------+ | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ | - | Copyright (c) 2020 Michael Wallner | + | Copyright (c) 2020-2021 Michael Wallner https://awesome.co/ | +--------------------------------------------------------------------+ */ #include "libmemcached/common.h" -#include "p9y/socket.hpp" #include #include @@ -93,7 +92,11 @@ static memcached_return_t resolve_names(memcached_instance_st &server, char *lad extern "C" { static void sasl_shutdown_function() { +#if HAVE_SASL_CLIENT_DONE + (void) sasl_client_done(); +#else sasl_done(); +#endif } static std::atomic sasl_startup_state(SASL_OK);