Commit Diff
Diff:
9918a7628fb88f566b574a046459d471866cc2d3
8824c6eecda20c0cb8bc1d432fbb31d7a9b33f8f
Commit:
8824c6eecda20c0cb8bc1d432fbb31d7a9b33f8f
Tree:
b5490b94f7638c32cc94b9b99f74906e1888510a
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Fri Jun 7 04:25:50 2019 UTC
Message:
This makes FreeBSD compile again.
blob - 45127c8f05af9648c06a3d4df91fd4882e064588
blob + ca3c72b3301fcd9cf964f5e068682329bee973cf
--- additional.c
+++ additional.c
@@ -27,7 +27,7 @@
*/
/*
- * $Id: additional.c,v 1.27 2019/06/06 14:56:08 pjp Exp $
+ * $Id: additional.c,v 1.28 2019/06/07 04:25:50 pjp Exp $
*/
#include <sys/types.h>
@@ -54,6 +54,9 @@
#else /* not linux */
#include <sys/queue.h>
#include <sys/tree.h>
+#ifdef __FreeBSD__
+#include <sys/endian.h>
+#endif /* __FreeBSD__ */
#endif /* __linux__ */
blob - 8d9f402fbf56cc55f65cf6cbec66223c2140da8b
blob + 5d664e979d12f2d1fcfa195dc09da98755eceaf1
--- dddctl.c
+++ dddctl.c
@@ -27,7 +27,7 @@
*/
/*
- * $Id: dddctl.c,v 1.64 2019/06/06 15:08:00 pjp Exp $
+ * $Id: dddctl.c,v 1.65 2019/06/07 04:25:50 pjp Exp $
*/
#include <sys/param.h>
@@ -7167,7 +7167,7 @@ lookup_axfr(FILE *f, int so, char *zonename, struct so
return -1;
}
-#ifdef __linux__
+#if defined __linux__ || defined __FreeBSD__
HMAC_CTX_free(ctx);
#else
HMAC_cleanup(ctx);
blob - d5ea77be6e70bfc2c56bde97a34caf858402f6ac
blob + 4bc3116f6d7777bb039f0a41ddaed6d0d0ec1931
--- util.c
+++ util.c
@@ -27,7 +27,7 @@
*/
/*
- * $Id: util.c,v 1.32 2019/06/06 15:08:00 pjp Exp $
+ * $Id: util.c,v 1.33 2019/06/07 04:25:50 pjp Exp $
*/
#include <sys/types.h>
@@ -63,6 +63,7 @@
#include <sys/queue.h>
#include <sys/tree.h>
#ifdef __FreeBSD__
+#include <sys/endian.h>
#include "imsg.h"
#else
#include <imsg.h>
@@ -1086,7 +1087,7 @@ build_question(char *buf, int len, int additional, cha
tsigrr = (struct dns_tsigrr *)&buf[i];
/* XXX */
-#ifdef __linux__
+#if defined __linux__ || defined __FreeBSD__
timefudge = be64toh(tsigrr->timefudge);
#else
timefudge = betoh64(tsigrr->timefudge);
repomaster@centroid.eu