[Asterisk-code-review] BuildSystem: Fix build on FreeBSD due to missing crypt.h (asterisk[master])

Guido Falsi asteriskteam at digium.com
Thu Jun 8 10:42:55 CDT 2017


Guido Falsi has uploaded a new change for review. ( https://gerrit.asterisk.org/5783 )

Change subject: BuildSystem: Fix build on FreeBSD due to missing crypt.h
......................................................................

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
---
M main/crypt.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/83/5783/1

diff --git a/main/crypt.c b/main/crypt.c
index 9246182..131ebbd 100644
--- a/main/crypt.c
+++ b/main/crypt.c
@@ -29,7 +29,7 @@
 #include "asterisk.h"
 
 #include <unistd.h>
-#if defined(HAVE_CRYPT_R)
+#if defined(HAVE_CRYPT_R) && !defined(__FreeBSD__)
 #include <crypt.h>
 #endif
 

-- 
To view, visit https://gerrit.asterisk.org/5783
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib307ee5e384870c6af50efa89fb73722dd0c3a7e
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Guido Falsi <madpilot at freebsd.org>



More information about the asterisk-code-review mailing list