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: 13.17.0-rc1~45^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44cee2f4a15db911d2c9bdd6f845d17a1e6c6c17;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 5e5df02cd9..c44d800b48 100644 --- a/main/crypt.c +++ b/main/crypt.c @@ -31,7 +31,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include -#if defined(HAVE_CRYPT_R) +#if defined(HAVE_CRYPT_R) && !defined(__FreeBSD__) #include #endif