From 44cee2f4a15db911d2c9bdd6f845d17a1e6c6c17 Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Thu, 8 Jun 2017 17:36:00 +0200 Subject: [PATCH] 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 --- main/crypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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