projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/network.c: Fix the build on FreeBSD.
[collectd.git]
/
src
/
network.c
diff --git
a/src/network.c
b/src/network.c
index
d6e0dc0
..
19b4cc3
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-66,6
+66,11
@@
*/
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
# endif
*/
# 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 */
# include <gcrypt.h>
# if defined __APPLE__
/* Re enable deprecation warnings */