regex: header to be used only if FLB_HAVE_REGEX is set
#ifndef FLB_REGEX_H
#define FLB_REGEX_H
+#include <fluent-bit/flb_info.h>
+
+#ifdef FLB_HAVE_REGEX
+
#include <fluent-bit/flb_compat.h>
#include <stdlib.h>
@@ -56,3 +60,5 @@ int flb_regex_destroy(struct flb_regex *r);
void flb_regex_exit();
#endif
+
+#endif
