Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion modules/cachedb_mongodb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ NAME=cachedb_mongodb.so
include ../../lib/json/Makefile.json
ifeq ($(CROSS_COMPILE),)
MONGOC_BUILDER := $(shell \
if pkg-config --exists libmongoc-1.0; then \
if pkg-config --exists mongoc2; then \
echo 'pkg-config mongoc2'; \
elif pkg-config --exists libmongoc-1.0; then \
echo 'pkg-config libmongoc-1.0'; \
fi)
endif
Expand Down
4 changes: 2 additions & 2 deletions modules/cachedb_mongodb/cachedb_mongodb_dbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

#define MONGO_HAVE_STDINT 1

#include <mongoc.h>
#include <bson.h>
#include <mongoc/mongoc.h>
#include <bson/bson.h>

#include <stdint.h>

Expand Down
2 changes: 1 addition & 1 deletion modules/cachedb_mongodb/cachedb_mongodb_json.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "cachedb_mongodb_dbase.h"

#include <bson.h>
#include <bson/bson.h>
#include <stdint.h>

int json_to_bson(char *json,bson_t *bb);
Expand Down