diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-26 15:46:18 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-26 15:46:18 +0200 |
commit | 0088c275da85e49005a2294335fb3365583d2bb9 (patch) | |
tree | 1e7b9eedf571651ad27c2337b64eb8f5e6b51c3f /plugins/ommongodb/ommongodb.c | |
parent | 8b50bdbee90d9bd00a78e776d5ade60d085c0823 (diff) | |
parent | 4acf8e361aa68b3e753611c7c7e607c04dfd8d1a (diff) | |
download | rsyslog-0088c275da85e49005a2294335fb3365583d2bb9.tar.gz rsyslog-0088c275da85e49005a2294335fb3365583d2bb9.tar.bz2 rsyslog-0088c275da85e49005a2294335fb3365583d2bb9.zip |
Merge branch 'master' into master-var-refactor
Diffstat (limited to 'plugins/ommongodb/ommongodb.c')
-rw-r--r-- | plugins/ommongodb/ommongodb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/ommongodb/ommongodb.c b/plugins/ommongodb/ommongodb.c index 78781c08..af1f5a37 100644 --- a/plugins/ommongodb/ommongodb.c +++ b/plugins/ommongodb/ommongodb.c @@ -317,8 +317,11 @@ BSONAppendJSONObject(bson *doc, const gchar *name, struct json_object *json) case json_type_int: { int64_t i; - /* FIXME: the future version will have get_int64 */ +#ifdef HAVE_JSON_OBJECT_NEW_INT64 + i = json_object_get_int64(json); +#else /* HAVE_JSON_OBJECT_NEW_INT64 */ i = json_object_get_int(json); +#endif /* HAVE_JSON_OBJECT_NEW_INT64 */ if (i >= INT32_MIN && i <= INT32_MAX) return bson_append_int32(doc, name, i); else |