]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Fix the build on FreeBSD
authorVolker Lendecke <vl@samba.org>
Sun, 7 Sep 2025 19:23:07 +0000 (21:23 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 10 Sep 2025 08:35:31 +0000 (08:35 +0000)
FreeBSD does not need crypt.h for crypt_r(). Patch from
Peter Eriksson <pen@lysator.liu.se> via
https://bugzilla.samba.org/show_bug.cgi?id=15897#c8

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
lib/util/util_crypt.c

index 9ac6e1cfd0e5e41d44ab3e7f8bd3b696cc71ada5..93af7c7711c378b4c299fff411ff07c6de47c826 100644 (file)
@@ -2,7 +2,9 @@
 #include "data_blob.h"
 #include "discard.h"
 #include <talloc.h>
+#ifdef HAVE_CRYPT_H
 #include <crypt.h>
+#endif
 #include "util_crypt.h"