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: 15.0.0-beta1~98^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b668297f3feb2a85abdc666b759ff69b69f109e;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 924618205a..131ebbd609 100644 --- a/main/crypt.c +++ b/main/crypt.c @@ -29,7 +29,7 @@ #include "asterisk.h" #include -#if defined(HAVE_CRYPT_R) +#if defined(HAVE_CRYPT_R) && !defined(__FreeBSD__) #include #endif