]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_http_post: Not all versions of gmime have GMIME_MAJOR_VERSION.
authorJoshua Colp <jcolp@digium.com>
Fri, 1 Dec 2017 12:07:52 +0000 (08:07 -0400)
committerJoshua Colp <jcolp@digium.com>
Fri, 1 Dec 2017 12:08:53 +0000 (06:08 -0600)
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

res/res_http_post.c

index 3e1ed03f653771200f116fa1722a56214c91c2da..4b864b5d836c3322a01eee26c13c2cdf39451ee1 100644 (file)
@@ -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