]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
BuildSystem: Fix build on FreeBSD due to missing crypt.h
authorGuido Falsi <madpilot@freebsd.org>
Thu, 8 Jun 2017 15:36:00 +0000 (17:36 +0200)
committerGuido Falsi <madpilot@freebsd.org>
Thu, 8 Jun 2017 15:40:36 +0000 (10:40 -0500)
FreeBSD does not include a crypt.h include file. Definitions for
crypt() and crypt_r() are in unistd.h

ASTERISK-27042 #close

Change-Id: Ib307ee5e384870c6af50efa89fb73722dd0c3a7e

main/crypt.c

index a4cf664b15b87fd3317ee26c5fd3806e7eeaf28f..99249c8aa2c41a441cce9ada1fed5c8d433d2bea 100644 (file)
@@ -31,7 +31,7 @@
 ASTERISK_REGISTER_FILE()
 
 #include <unistd.h>
-#if defined(HAVE_CRYPT_R)
+#if defined(HAVE_CRYPT_R) && !defined(__FreeBSD__)
 #include <crypt.h>
 #endif