summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/librdns/curve.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/librdns/curve.c b/contrib/librdns/curve.c
index f53d078b2..c6479c31e 100644
--- a/contrib/librdns/curve.c
+++ b/contrib/librdns/curve.c
@@ -446,8 +446,13 @@ rdns_curve_dtor (struct rdns_resolver *resolver, void *plugin_data)
#include "cryptobox.h"
+
+#ifndef crypto_box_ZEROBYTES
#define crypto_box_ZEROBYTES 32
+#endif
+#ifndef crypto_box_BOXZEROBYTES
#define crypto_box_BOXZEROBYTES 16
+#endif
ssize_t rdns_curve_send (struct rdns_request *req, void *plugin_data,
struct sockaddr *saddr, socklen_t slen);