summaryrefslogtreecommitdiffstats
path: root/compat/imsg-buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/imsg-buffer.c')
-rw-r--r--compat/imsg-buffer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/compat/imsg-buffer.c b/compat/imsg-buffer.c
index ea236efd..9aed0ed3 100644
--- a/compat/imsg-buffer.c
+++ b/compat/imsg-buffer.c
@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
+#include <arpa/inet.h>
#include <limits.h>
#include <errno.h>
@@ -31,11 +32,17 @@
#include "compat.h"
#include "imsg.h"
+#undef htobe16
#define htobe16 htons
+#undef htobe32
#define htobe32 htonl
+#undef htobe64
#define htobe64 htonll
+#undef be16toh
#define be16toh ntohs
+#undef be32toh
#define be32toh ntohl
+#undef be64toh
#define be64toh ntohll
static int ibuf_realloc(struct ibuf *, size_t);