From: Joshua Colp Date: Fri, 1 Dec 2017 12:07:52 +0000 (-0400) Subject: res_http_post: Not all versions of gmime have GMIME_MAJOR_VERSION. X-Git-Tag: 15.2.0-rc1~76^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff8e0f78efecceef2e99b93d2f8be10aa479033e;p=thirdparty%2Fasterisk.git res_http_post: Not all versions of gmime have GMIME_MAJOR_VERSION. This change makes the presence of the GMIME_MAJOR_VERSION definition optional, as not all versions of gmime actually define it. ASTERISK-27454 Change-Id: I01d99590045971ed6787899147170a5954077238 --- diff --git a/res/res_http_post.c b/res/res_http_post.c index 9f5b1837a2..dca18a6ad3 100644 --- a/res/res_http_post.c +++ b/res/res_http_post.c @@ -55,7 +55,7 @@ #ifdef GMIME_TYPE_CONTENT_TYPE #define AST_GMIME_VER_24 #endif -#if GMIME_MAJOR_VERSION >= 3 +#if defined(GMIME_MAJOR_VERSION) && (GMIME_MAJOR_VERSION >= 3) #define AST_GMIME_VER_30 #endif