src/libcollectdclient/network_buffer.c: Fix gcrypt build on FreeBSD.
authorEd Schouten <ed@80386.nl>
Sat, 17 Nov 2012 09:44:48 +0000 (10:44 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 17 Nov 2012 11:42:48 +0000 (12:42 +0100)
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 <octo@collectd.org>
src/libcollectdclient/network_buffer.c

index 5553d82..0b34e1f 100644 (file)
  */
 #  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 */