Skip to content

Commit f1be65f

Browse files
committed
in_tail: Fix build failures on CentOS7
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 10e4f7d commit f1be65f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

plugins/in_tail/tail_config.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
#include "tail_multiline.h"
3737
#endif
3838

39-
#ifdef FLB_HAVE_UNICODE_ENCODER
4039
#include <fluent-bit/flb_unicode.h>
41-
#endif
4240

4341
static int multiline_load_parsers(struct flb_tail_config *ctx)
4442
{

plugins/in_tail/tail_file.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@
4848
#include "win32.h"
4949
#endif
5050

51-
#ifdef FLB_HAVE_UNICODE_ENCODER
5251
#include <fluent-bit/flb_unicode.h>
53-
#endif
5452

5553
#include <cfl/cfl.h>
5654

@@ -445,8 +443,8 @@ static int process_content(struct flb_tail_file *file, size_t *bytes)
445443
time_t now = time(NULL);
446444
struct flb_time out_time = {0};
447445
struct flb_tail_config *ctx;
448-
#ifdef FLB_HAVE_UNICODE_ENCODER
449446
char *decoded = NULL;
447+
#ifdef FLB_HAVE_UNICODE_ENCODER
450448
size_t decoded_len;
451449
#endif
452450

0 commit comments

Comments
 (0)