From: Guido Falsi Date: Thu, 8 Jun 2017 15:36:00 +0000 (+0200) Subject: BuildSystem: Fix build on FreeBSD due to missing crypt.h X-Git-Tag: 14.6.0-rc1~44^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3cf5492dd6c11ba629463737ae441e6b467d9cf;p=thirdparty%2Fasterisk.git BuildSystem: Fix build on FreeBSD due to missing crypt.h 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 --- diff --git a/main/crypt.c b/main/crypt.c index a4cf664b15..99249c8aa2 100644 --- a/main/crypt.c +++ b/main/crypt.c @@ -31,7 +31,7 @@ ASTERISK_REGISTER_FILE() #include -#if defined(HAVE_CRYPT_R) +#if defined(HAVE_CRYPT_R) && !defined(__FreeBSD__) #include #endif