[Asterisk-code-review] BuildSystem: Fix build on FreeBSD due to missing crypt.h (asterisk[14])
Guido Falsi
asteriskteam at digium.com
Thu Jun 8 10:40:37 CDT 2017
Guido Falsi has uploaded a new change for review. ( https://gerrit.asterisk.org/5782 )
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/82/5782/1
diff --git a/main/crypt.c b/main/crypt.c
index a4cf664..99249c8 100644
--- a/main/crypt.c
+++ b/main/crypt.c
@@ -31,7 +31,7 @@
ASTERISK_REGISTER_FILE()
#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/5782
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib307ee5e384870c6af50efa89fb73722dd0c3a7e
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Guido Falsi <madpilot at freebsd.org>
More information about the asterisk-code-review
mailing list