summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@freebsd.org>2017-10-14 11:11:24 +0200
committerGuido Falsi <madpilot@freebsd.org>2017-10-14 14:36:07 +0200
commitc4f40b778a8acb996a5076fa384f87ce37bce9f6 (patch)
tree3fc55c9780048af0d47579dbd3ef9c0e5014c63a /channels
parent89796eaef212d7fd732d2f5ff662987cb90b4b14 (diff)
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
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_dahdi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 828753a05..b20a0f33a 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -56,11 +56,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