[Asterisk-code-review] res http post: Not all versions of gmime have GMIME MAJOR VE... (asterisk[master])

Joshua Colp asteriskteam at digium.com
Fri Dec 1 06:08:43 CST 2017


Joshua Colp has uploaded this change for review. ( https://gerrit.asterisk.org/7402


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/02/7402/1

diff --git a/res/res_http_post.c b/res/res_http_post.c
index 9f5b183..dca18a6 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
 

-- 
To view, visit https://gerrit.asterisk.org/7402
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I01d99590045971ed6787899147170a5954077238
Gerrit-Change-Number: 7402
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/57409f70/attachment-0001.html>


More information about the asterisk-code-review mailing list