summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/util.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2019-04-10 15:22:19 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2019-04-10 15:22:19 +0000
commit490bccbffaa77f1c31446036971b55eff0759f47 (patch)
tree982f05c1f9eaab4966946434dd71ecbafe893ad7 /usr.sbin/bgpd/util.c
parent0a1e3562d8ece94e7ba0094f413b70f545670f8b (diff)
Include endian.h since htobe* or be*toh is used. Helps with protable.
OK deraadt@
Diffstat (limited to 'usr.sbin/bgpd/util.c')
-rw-r--r--usr.sbin/bgpd/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/util.c b/usr.sbin/bgpd/util.c
index 7dc79b12306..14df35f6068 100644
--- a/usr.sbin/bgpd/util.c
+++ b/usr.sbin/bgpd/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.48 2019/02/27 04:31:56 claudio Exp $ */
+/* $OpenBSD: util.c,v 1.49 2019/04/10 15:21:54 claudio Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
@@ -20,6 +20,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <endian.h>
#include <errno.h>
#include <netdb.h>
#include <stdlib.h>