From: David Vossel Date: Tue, 25 May 2010 17:11:40 +0000 (+0000) Subject: fixes build issue with zaptel X-Git-Tag: 1.4.33-rc1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff8057a92a9f2272b81575221390f17c6431c4bd;p=thirdparty%2Fasterisk.git fixes build issue with zaptel (closes issue #17394) 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.4@265613 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 835df5b87f..bef5f6dd8c 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -3468,8 +3468,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;