From: Volker Lendecke Date: Sun, 7 Sep 2025 19:23:07 +0000 (+0200) Subject: lib: Fix the build on FreeBSD X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b14fa86c1251b8d82b8d3cbf457b11e086cc7fc3;p=thirdparty%2Fsamba.git lib: Fix the build on FreeBSD FreeBSD does not need crypt.h for crypt_r(). Patch from Peter Eriksson via https://bugzilla.samba.org/show_bug.cgi?id=15897#c8 Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/lib/util/util_crypt.c b/lib/util/util_crypt.c index 9ac6e1cfd0e..93af7c7711c 100644 --- a/lib/util/util_crypt.c +++ b/lib/util/util_crypt.c @@ -2,7 +2,9 @@ #include "data_blob.h" #include "discard.h" #include +#ifdef HAVE_CRYPT_H #include +#endif #include "util_crypt.h"