summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-12-01 08:07:52 -0400
committerJoshua Colp <jcolp@digium.com>2017-12-01 08:07:52 -0400
commitdac70daf1b1b066db3c491b44612ce46435269f7 (patch)
tree9b91b7ecc1024b6bcbf4267e145e244b8ec8b9bb /res
parent0f4152307ad2b831df10fb23605b033d6f1b0ae1 (diff)
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
Diffstat (limited to 'res')
-rw-r--r--res/res_http_post.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_http_post.c b/res/res_http_post.c
index 3e1ed03f6..4b864b5d8 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