diff --git a/src/network.c b/src/network.c
index d6e0dc0174c359af26a1ad6b576a2a4c28743ccd..19b4cc34d41d39a758b1db0f70f0e22080fdb982 100644 (file)
--- a/src/network.c
+++ b/src/network.c
*/
# 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 <gcrypt.h>
# if defined __APPLE__
/* Re enable deprecation warnings */