From 4d4c76c18918d60f49095ed0dc01377ab85d8ccc Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Fri, 1 Dec 2017 08:07:52 -0400 Subject: [PATCH] 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 --- res/res_http_post.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_http_post.c b/res/res_http_post.c index 3e1ed03f65..4b864b5d83 100644 --- a/res/res_http_post.c +++ b/res/res_http_post.c @@ -57,7 +57,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #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 -- 2.47.2