Module: kamailio
Branch: master
Commit: 510cfca61d2df1dcc2baa492c9f1f2f3b129ceb7
URL:
https://github.com/kamailio/kamailio/commit/510cfca61d2df1dcc2baa492c9f1f2f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-24T19:59:23+02:00
db_redis: updated include paths for pkg-config usage
---
Modified: src/modules/db_redis/Makefile
Modified: src/modules/db_redis/redis_connection.h
---
Diff:
https://github.com/kamailio/kamailio/commit/510cfca61d2df1dcc2baa492c9f1f2f…
Patch:
https://github.com/kamailio/kamailio/commit/510cfca61d2df1dcc2baa492c9f1f2f…
---
diff --git a/src/modules/db_redis/Makefile b/src/modules/db_redis/Makefile
index c4aa0d0731..8e7ad1f74b 100644
--- a/src/modules/db_redis/Makefile
+++ b/src/modules/db_redis/Makefile
@@ -13,7 +13,7 @@ HIREDIS_BUILDER = $(shell \
endif
ifeq ($(HIREDIS_BUILDER),)
- HIREDISDEFS=-I$(LOCALBASE)/include
+ HIREDISDEFS=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/hiredis
HIREDISLIBS=-L$(LOCALBASE)/lib -lhiredis
else
HIREDISDEFS = $(shell $(HIREDIS_BUILDER) --cflags)
diff --git a/src/modules/db_redis/redis_connection.h
b/src/modules/db_redis/redis_connection.h
index 8261e2bf96..11cadf5500 100644
--- a/src/modules/db_redis/redis_connection.h
+++ b/src/modules/db_redis/redis_connection.h
@@ -23,7 +23,7 @@
#ifndef _REDIS_CONNECTION_H_
#define _REDIS_CONNECTION_H_
-#include <hiredis/hiredis.h>
+#include <hiredis.h>
#include "db_redis_mod.h"
@@ -79,4 +79,4 @@ void db_redis_consume_replies(km_redis_con_t *con);
void db_redis_free_reply(redisReply **reply);
const char *db_redis_get_error(km_redis_con_t *con);
-#endif /* _REDIS_CONNECTION_H_ */
\ No newline at end of file
+#endif /* _REDIS_CONNECTION_H_ */