From 7bd436249b37b04807bbe7491998a9528056919f Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sat, 17 Nov 2012 10:44:48 +0100 Subject: [PATCH] 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 --- src/libcollectdclient/network_buffer.c | 5 +++++ 1 file changed, 5 insertions(+) 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 */ -- 2.11.0