summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/htons.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-12-19 22:44:58 +0000
committerguenther <guenther@openbsd.org>2014-12-19 22:44:58 +0000
commit9b18ffb8507e1a97fa391314bca6471c6889ce16 (patch)
tree7e7d675e5864f50aa0c89308697c6bf6e389bdfa /sys/lib/libkern/htons.c
parentsync with libc, using brnz,pt instead, should be better (diff)
downloadwireguard-openbsd-9b18ffb8507e1a97fa391314bca6471c6889ce16.tar.xz
wireguard-openbsd-9b18ffb8507e1a97fa391314bca6471c6889ce16.zip
Use <sys/endian.h> instead of <machine/endian.h>
ok dlg@ mpi@ bcook@ millert@ miod@
Diffstat (limited to 'sys/lib/libkern/htons.c')
-rw-r--r--sys/lib/libkern/htons.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/lib/libkern/htons.c b/sys/lib/libkern/htons.c
index 2f50d082ee3..b7907e14558 100644
--- a/sys/lib/libkern/htons.c
+++ b/sys/lib/libkern/htons.c
@@ -3,8 +3,7 @@
* Public domain.
*/
-#include <sys/types.h>
-#include <machine/endian.h>
+#include <sys/endian.h>
#undef htons