From: Florian Forster Date: Wed, 3 May 2017 09:45:42 +0000 (+0200) Subject: libcollectdclient: Use GCRY_THREAD_OPTION_PTHREAD_IMPL with older gcrypt versions... X-Git-Tag: collectd-5.8.0~102^2~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=96289bfdb8519c7bfbb5e1dffe6ac22da7496d66;p=collectd.git libcollectdclient: Use GCRY_THREAD_OPTION_PTHREAD_IMPL with older gcrypt versions only. Copied from src/network.c --- diff --git a/src/libcollectdclient/network_parse.c b/src/libcollectdclient/network_parse.c index 7a9c32ad..cbd434b6 100644 --- a/src/libcollectdclient/network_parse.c +++ b/src/libcollectdclient/network_parse.c @@ -44,7 +44,9 @@ #include #define DEBUG(...) printf(__VA_ARGS__) +#if GCRYPT_VERSION_NUMBER < 0x010600 GCRY_THREAD_OPTION_PTHREAD_IMPL; +#endif /* forward declaration because parse_sign_sha256()/parse_encrypt_aes256() and * network_parse() need to call each other. */