[Asterisk-code-review] res http post: Not all versions of gmime have GMIME MAJOR VE... (asterisk[13])
Joshua Colp
asteriskteam at digium.com
Fri Dec 1 06:08:02 CST 2017
Joshua Colp has uploaded this change for review. ( https://gerrit.asterisk.org/7400
Change subject: res_http_post: Not all versions of gmime have GMIME_MAJOR_VERSION.
......................................................................
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
---
M res/res_http_post.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/00/7400/1
diff --git a/res/res_http_post.c b/res/res_http_post.c
index 3e1ed03..4b864b5 100644
--- a/res/res_http_post.c
+++ b/res/res_http_post.c
@@ -57,7 +57,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
--
To view, visit https://gerrit.asterisk.org/7400
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I01d99590045971ed6787899147170a5954077238
Gerrit-Change-Number: 7400
Gerrit-PatchSet: 1
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171201/746ba667/attachment.html>
More information about the asterisk-code-review
mailing list