summaryrefslogtreecommitdiff
path: root/res/res_http_post.c
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 06:08:42 -0600
commit892df22ccd5cb00f5792990f3ed45966d6e08013 (patch)
treee140cc8760f43bc2b99a64bc8a6f456ab7fdd30f /res/res_http_post.c
parent5de9754313ee30080c591fab7f0aef74a65f2417 (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/res_http_post.c')
-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 9f5b1837a..dca18a6ad 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