From: Ed Schouten Date: Sat, 17 Nov 2012 09:44:48 +0000 (+0100) Subject: src/libcollectdclient/network_buffer.c: Fix gcrypt build on FreeBSD. X-Git-Tag: collectd-5.2.0~6 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=7bd436249b37b04807bbe7491998a9528056919f;p=collectd.git src/libcollectdclient/network_buffer.c: Fix gcrypt build on FreeBSD. As with src/network.c, we need to ensure that we define GCRYPT_NO_DEPRECATED on FreeBSD to get rid of the compiler warnings emitted by the header file. Signed-off-by: Florian Forster --- diff --git a/src/libcollectdclient/network_buffer.c b/src/libcollectdclient/network_buffer.c index 5553d826..0b34e1f4 100644 --- a/src/libcollectdclient/network_buffer.c +++ b/src/libcollectdclient/network_buffer.c @@ -44,6 +44,11 @@ */ # pragma GCC diagnostic ignored "-Wdeprecated-declarations" # endif +/* FreeBSD's copy of libgcrypt extends the existing GCRYPT_NO_DEPRECATED + * to properly hide all deprecated functionality. + * http://svnweb.freebsd.org/ports/head/security/libgcrypt/files/patch-src__gcrypt.h.in + */ +# define GCRYPT_NO_DEPRECATED # include # if defined __APPLE__ /* Re enable deprecation warnings */