Add support for L4Re Virtio Sockets
[src/app-framework-binder.git] / src / afb-hook.c
index 3fcd36d..075f6a0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017, 2018 "IoT.bzh"
+ * Copyright (C) 2016-2019 "IoT.bzh"
  * Author José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,6 +15,8 @@
  * limitations under the License.
  */
 
+#if WITH_AFB_HOOK  /***********************************************************/
+
 #define _GNU_SOURCE
 
 #include <limits.h>
 #include "afb-evt.h"
 #include "afb-api.h"
 #include "afb-msg-json.h"
+
+#include "globmatch.h"
 #include "verbose.h"
 
-#include <fnmatch.h>
 #define MATCH(pattern,string)   (\
                pattern \
                        ? !fnmatch((pattern),(string),FNM_CASEFOLD|FNM_EXTMATCH|FNM_PERIOD) \
@@ -1848,3 +1851,4 @@ void afb_hook_unref_global(struct afb_hook_global *hook)
        }
 }
 
+#endif /* WITH_AFB_HOOK *******************************************************/