network: don't enable gcrypt thread callbacks when gcrypt recent enough
authorVincent Bernat <vincent@bernat.im>
Fri, 7 Nov 2014 14:20:22 +0000 (15:20 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 11 Nov 2014 12:30:34 +0000 (13:30 +0100)
commit7a36dbe8c81a2d7ea9cb7cf8379aaa7049d58930
treeba2c4fc70b5c8a4ac13159372186ccd1753e56cb
parent1bbb3846fb60e220721c7c29fb5ef214d99c2293
network: don't enable gcrypt thread callbacks when gcrypt recent enough

From `gcrypt.h`:

> NOTE: Since Libgcrypt 1.6 the thread callbacks are not anymore used.
> However we keep it to allow for some source code compatibility if used
> in the standard way.

Otherwise, we get a deprecation warning which is turned into an error:

```
  CC       libcollectdclient_la-network_buffer.lo
../../../src/libcollectdclient/network_buffer.c:58:15: error: 'gcry_thread_cbs' is deprecated (declared at /usr/include/gcrypt.h:213) [-Werror=deprecated-declarations]
 GCRY_THREAD_OPTION_PTHREAD_IMPL;
```

Fixes: #632
src/libcollectdclient/network_buffer.c
src/network.c