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

Jenkins2 asteriskteam at digium.com
Mon Dec 4 06:54:24 CST 2017


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/7403 )

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(-)

Approvals:
  George Joseph: Looks good to me, but someone else must approve
  Sean Bright: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved
  Jenkins2: Approved for Submit



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/7403
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: certified/13.18
Gerrit-MessageType: merged
Gerrit-Change-Id: I01d99590045971ed6787899147170a5954077238
Gerrit-Change-Number: 7403
Gerrit-PatchSet: 1
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171204/573c84ef/attachment.html>


More information about the asterisk-code-review mailing list