dahdi_compat.h was not being included in channel.c when used with
Zaptel and wasn't in file.c at all.
(closes issue #15250)
Reported by: mneuhauser
Patches:
dahdi_compat.patch uploaded by mneuhauser (license 425)
Tested by: IgorG
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@263112
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
#include <unistd.h>
#include <math.h>
-#if defined(HAVE_DAHDI)
+#if defined(HAVE_DAHDI) || defined(HAVE_ZAPTEL)
#include <sys/ioctl.h>
#include "asterisk/dahdi_compat.h"
#endif
#include "asterisk/linkedlists.h"
#include "asterisk/module.h"
#include "asterisk/astobj2.h"
+#include "asterisk/dahdi_compat.h"
/*
* The following variable controls the layout of localized sound files.