Replacing <machine/endian.h> with <sys/endian.h> does not imply removing
authormiod <miod@openbsd.org>
Sat, 20 Dec 2014 18:15:29 +0000 (18:15 +0000)
committermiod <miod@openbsd.org>
Sat, 20 Dec 2014 18:15:29 +0000 (18:15 +0000)
<sys/types.h>. kthxbye

sys/lib/libkern/htonl.c
sys/lib/libkern/htons.c

index f01cc7e..6929e7e 100644 (file)
@@ -1,8 +1,10 @@
+/*     $OpenBSD: htonl.c,v 1.9 2014/12/20 18:15:29 miod Exp $  */
 /*
  * Written by J.T. Conklin <jtc@netbsd.org>.
  * Public domain.
  */
 
+#include <sys/types.h>
 #include <sys/endian.h>
 
 #undef htonl
index b7907e1..714eb37 100644 (file)
@@ -1,8 +1,10 @@
+/*     $OpenBSD: htons.c,v 1.9 2014/12/20 18:15:29 miod Exp $  */
 /*
  * Written by J.T. Conklin <jtc@netbsd.org>.
  * Public domain.
  */
 
+#include <sys/types.h>
 #include <sys/endian.h>
 
 #undef htons