Skip to content

Commit 943d870

Browse files
Fixed define bug when Mongo C v2 in use
1 parent 1ef4139 commit 943d870

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/fastnetmon_logic.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,19 @@
5656
#include "example_plugin/example_collector.hpp"
5757

5858
#ifdef MONGO
59+
5960
#ifdef USING_MONGO2
61+
6062
#include <bson/bson.h>
6163
#include <mongoc/mongoc.h>
62-
#elif
64+
65+
#else
66+
6367
#include <bson.h>
6468
#include <mongoc.h>
69+
6570
#endif
71+
6672
#endif
6773

6874
#include "fastnetmon_networks.hpp"

0 commit comments

Comments
 (0)