summaryrefslogtreecommitdiffstats
path: root/filescan-utils.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-07-10 10:29:11 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 14:12:02 +0100
commit8f2417cbae60e67cd8c6b6540838b0c9076ebffb (patch)
tree4c979429eed64d46fc99bc1b95f4fd3d192a8d5e /filescan-utils.c
parente1936c3919ea56307cbdb60ccbd15cd0dcf80ba7 (diff)
Use binding version to handle dynapi
Use binding version to define dynamic api debug messages function. It is also cleaner to define binding version directly into repository cmake than into a header like before this commit. Change-Id: Ia14f635a7a2cec05c29f27ee4ce645711a8574a4 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'filescan-utils.c')
-rw-r--r--filescan-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filescan-utils.c b/filescan-utils.c
index a6111c1..6b3cf65 100644
--- a/filescan-utils.c
+++ b/filescan-utils.c
@@ -152,7 +152,7 @@ char* GetBindingDirPath(struct afb_dynapi* dynapi)
char retdir[CONTROL_MAXPATH_LEN];
ssize_t len;
-#ifdef USE_API_DYN
+#if((AFB_BINDING_VERSION == 0 || AFB_BINDING_VERSION == 3) && defined(AFB_BINDING_WANT_DYNAPI))
if (!dynapi)
return NULL;
sprintf(fd_link, "/proc/self/fd/%d", afb_dynapi_rootdir_get_fd(dynapi));