From 60b472c3879eecec69fe37fc7b0bf186877abbcc Mon Sep 17 00:00:00 2001 From: David Vossel Date: Tue, 25 May 2010 17:15:59 +0000 Subject: [PATCH] fixes build issue with zaptel (closes issue 0017394) Reported by: aragon Patches: half_buffer_fix.diff uploaded by dvossel (license 671) Tested by: aragon git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265615 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_dahdi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 0f80d9316f..2a256f23bd 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -5071,8 +5071,10 @@ static int parse_buffers_policy(const char *parse, int *num_buffers, int *policy *policy = DAHDI_POLICY_WHEN_FULL; } else if (!strcasecmp(policy_str, "immediate")) { *policy = DAHDI_POLICY_IMMEDIATE; +#ifdef DAHDI_POLICY_HALF_FULL } else if (!strcasecmp(policy_str, "half")) { *policy = DAHDI_POLICY_HALF_FULL; +#endif } else { ast_log(LOG_WARNING, "Invalid policy name given '%s'.\n", policy_str); return -1; -- 2.47.2