]> 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:36:00 +0000 (17:36 +0200)
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 5e5df02cd99e72ff938d80997716e076de5bd6ad..c44d800b48c83da40a8ed8e852aaa498ceedd3b7 100644 (file)
@@ -31,7 +31,7 @@
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
 #include <unistd.h>
-#if defined(HAVE_CRYPT_R)
+#if defined(HAVE_CRYPT_R) && !defined(__FreeBSD__)
 #include <crypt.h>
 #endif