From bcee06d42c20a8ea0e6c6ffb8924e16e7e793c0f Mon Sep 17 00:00:00 2001
From: mike <mike@FreeBSD.org>
Date: Mon, 18 Feb 2002 20:35:27 +0000
Subject: o Move NTOHL() and associated macros into <sys/param.h>.  These are  
 deprecated in favor of the POSIX-defined lowercase variants. o Change all
 occurrences of NTOHL() and associated marcros in the   source tree to use the
 lowercase function variants. o Add missing license bits to sparc64's
 <machine/endian.h>.   Approved by: jake o Clean up <machine/endian.h> files.
 o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o
 Remove prototypes for non-existent bswapXX() functions. o Include
 <machine/endian.h> in <arpa/inet.h> to define the   POSIX-required ntohl()
 family of functions. o Do similar things to expose the ntohl() family in
 libstand, <netinet/in.h>,   and <sys/param.h>. o Prepend underscores to the
 ntohl() family to help deal with   complexities associated with having MD
 (asm and inline) versions, and   having to prevent exposure of these
 functions in other headers that   happen to make use of endian-specific
 defines. o Create weak aliases to the canonical function name to help deal
 with   third-party software forgetting to include an appropriate header. o
 Remove some now unneeded pollution from <sys/types.h>. o Add missing
 <arpa/inet.h> includes in userland.

Tested on:	alpha, i386
Reviewed by:	bde, jake, tmm
---
 secure/lib/libcipher/crypt.c    | 1 +
 secure/lib/libcrypt/crypt-des.c | 1 +
 2 files changed, 2 insertions(+)

(limited to 'secure/lib')

diff --git a/secure/lib/libcipher/crypt.c b/secure/lib/libcipher/crypt.c
index 4798371..baf09e2 100644
--- a/secure/lib/libcipher/crypt.c
+++ b/secure/lib/libcipher/crypt.c
@@ -53,6 +53,7 @@
  */
 #include <sys/types.h>
 #include <sys/param.h>
+#include <arpa/inet.h>
 #include <pwd.h>
 
 #ifdef DEBUG
diff --git a/secure/lib/libcrypt/crypt-des.c b/secure/lib/libcrypt/crypt-des.c
index 5538cc8..2e86eac 100644
--- a/secure/lib/libcrypt/crypt-des.c
+++ b/secure/lib/libcrypt/crypt-des.c
@@ -61,6 +61,7 @@ __FBSDID("$FreeBSD$");
 
 #include <sys/types.h>
 #include <sys/param.h>
+#include <arpa/inet.h>
 #include <pwd.h>
 #include <string.h>
 #include "crypt.h"
-- 
cgit v1.1