]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_dahdi: wrap include file which is not present on BSD systems in #ifdef
authorGuido Falsi <madpilot@freebsd.org>
Sat, 14 Oct 2017 09:11:24 +0000 (11:11 +0200)
committerGuido Falsi <madpilot@freebsd.org>
Sat, 14 Oct 2017 12:34:23 +0000 (14:34 +0200)
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

channels/chan_dahdi.c

index 828753a05d9fea720e505c0a165f53d9b8f999b8..b20a0f33accf853529bc05ca3c80bda0677877e4 100644 (file)
 
 #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