Index: main/channel.c =================================================================== --- main/channel.c (revision 198761) +++ main/channel.c (working copy) @@ -37,7 +37,7 @@ #include #include -#if defined(HAVE_DAHDI) +#if defined(HAVE_DAHDI) || defined(HAVE_ZAPTEL) #include #include "asterisk/dahdi_compat.h" #endif Index: main/file.c =================================================================== --- main/file.c (revision 198761) +++ main/file.c (working copy) @@ -53,6 +53,9 @@ #include "asterisk/linkedlists.h" #include "asterisk/module.h" #include "asterisk/astobj2.h" +#if defined(HAVE_ZAPTEL) || defined (HAVE_DAHDI) +#include "asterisk/dahdi_compat.h" +#endif /* * The following variable controls the layout of localized sound files.