git: ca4512889940 - stable/13 - libcrypt: Drop inclusion of libutil.h

From: Jessica Clarke <jrtc27_at_FreeBSD.org>
Date: Tue, 25 Jan 2022 01:40:01 UTC
The branch stable/13 has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=ca451288994042e38b198cd6a7c8c13fe09fb28b

commit ca451288994042e38b198cd6a7c8c13fe09fb28b
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2021-12-06 22:28:10 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2022-01-24 23:59:19 +0000

    libcrypt: Drop inclusion of libutil.h
    
    This was rendered obsolete in 2012 by a0ee974f0bad, since auth_getval
    was the only reason the header was included.
    
    MFC after:      1 week
    
    (cherry picked from commit 7d232d647e3583b495d431b12eaa9343bb29b271)
---
 lib/libcrypt/Makefile | 2 +-
 lib/libcrypt/crypt.c  | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile
index f222394b45c3..31346cee2e39 100644
--- a/lib/libcrypt/Makefile
+++ b/lib/libcrypt/Makefile
@@ -20,7 +20,7 @@ SRCS=		crypt.c misc.c \
 MAN=		crypt.3
 MLINKS=		crypt.3 crypt_get_format.3 crypt.3 crypt_r.3 \
 		crypt.3 crypt_set_format.3
-CFLAGS+=	-I${SRCTOP}/lib/libmd -I${SRCTOP}/lib/libutil \
+CFLAGS+=	-I${SRCTOP}/lib/libmd \
 		-I${SRCTOP}/sys/crypto/sha2
 
 # Pull in the strong crypto, if it is present.
diff --git a/lib/libcrypt/crypt.c b/lib/libcrypt/crypt.c
index 8bb3b99e6712..13411321338f 100644
--- a/lib/libcrypt/crypt.c
+++ b/lib/libcrypt/crypt.c
@@ -32,7 +32,6 @@ __FBSDID("$FreeBSD$");
 
 #include <sys/types.h>
 
-#include <libutil.h>
 #include <string.h>
 #include <unistd.h>