From 55832a2197b65223bbfaff233dab755384c33a86 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Fri, 16 Nov 2012 21:58:46 +0100 Subject: [PATCH] src/network.c: Fix the build on FreeBSD. accepts a definition called GCRYPT_NO_DEPRECATED to disable deprecated functionality. Unfortunately, this definition is not sufficient to suppress all warnings. However, FreeBSD's version of libgcrypt has been fixed to properly remove all deprecated features. Signed-off-by: Florian Forster --- src/network.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/network.c b/src/network.c index d6e0dc01..19b4cc34 100644 --- a/src/network.c +++ b/src/network.c @@ -66,6 +66,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