Skip to content

Commit c5ce877

Browse files
nigels-comedsiper
authored andcommitted
router: conditional inclusion of onigmo.h for regex support (#1451)
Signed-off-by: Nigel Stewart <[email protected]>
1 parent 52aac6f commit c5ce877

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flb_router.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
#include <fluent-bit/flb_output.h>
2626
#include <fluent-bit/flb_config.h>
2727
#include <fluent-bit/flb_router.h>
28+
29+
#ifdef FLB_HAVE_REGEX
2830
#include <onigmo.h>
31+
#endif
2932

3033
#include <string.h>
3134

0 commit comments

Comments
 (0)