/*
- * 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");
* 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) \
}
}
+#endif /* WITH_AFB_HOOK *******************************************************/