[Asterisk-code-review] chan dahdi: wrap include file which is not present on BSD sy... (asterisk[14])

Guido Falsi asteriskteam at digium.com
Sat Oct 14 07:32:49 CDT 2017


Guido Falsi has uploaded this change for review. ( https://gerrit.asterisk.org/6802


Change subject: chan_dahdi: wrap include file which is not present on BSD systems in #ifdef
......................................................................

chan_dahdi: wrap include file which is not present on BSD systems in #ifdef

The sys/sysmacros.h include file does not exist in BSD systems and
is not required to build this module there.
Since an "#if defined(__NetBSD__) || defined(__FreeBSD__)" section
already exist I moved that include line inside it's #else branch.

ASTERISK-27343 #close

Change-Id: Ibfb64f4e9a0ce8b6eda7a7695cfe57916f175dc1
---
M channels/chan_dahdi.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/02/6802/1

diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index a6b0fda..4d8b0b8 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -58,11 +58,12 @@
 
 #if defined(__NetBSD__) || defined(__FreeBSD__)
 #include <pthread.h>
+#else
+#include <sys/sysmacros.h>
 #endif
 #include <signal.h>
 #include <sys/stat.h>
 #include <math.h>
-#include <sys/sysmacros.h>
 
 #include "sig_analog.h"
 /* Analog signaling is currently still present in chan_dahdi for use with

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

Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibfb64f4e9a0ce8b6eda7a7695cfe57916f175dc1
Gerrit-Change-Number: 6802
Gerrit-PatchSet: 1
Gerrit-Owner: Guido Falsi <madpilot at freebsd.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171014/afc2e849/attachment.html>


More information about the asterisk-code-review mailing list