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 11:11:24 +0200
commit85cada85d6d8b4ef749907bff092a5e9c1863801 (patch)
treead704618af47a588257393ee7dd3e341d6d019ee /channels
parent6fc88e80e88502015082e175d8b5735c3cd84267 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 18352d3af..ba7072b2c 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -61,10 +61,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <signal.h>
#else
#include <sys/signal.h>
+#include <sys/sysmacros.h>
#endif
#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