Skip to content

Commit 6eb8afd

Browse files
committed
supervisor: use compat header instead of unistd
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 8bde20a commit 6eb8afd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/flb_supervisor.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,23 @@
2525
#include <limits.h>
2626
#include <signal.h>
2727
#include <errno.h>
28-
#include <unistd.h>
28+
29+
#ifndef FLB_SYSTEM_WINDOWS
2930
#include <fcntl.h>
3031
#include <sys/types.h>
3132
#include <sys/wait.h>
3233
#include <time.h>
3334
#ifdef __linux__
3435
#include <sys/prctl.h>
3536
#endif
37+
#endif
3638

3739
#include <fluent-bit/flb_info.h>
3840
#include <fluent-bit/flb_macros.h>
3941
#include <fluent-bit/flb_supervisor.h>
4042
#include <fluent-bit/flb_log.h>
4143
#include <fluent-bit/flb_mem.h>
44+
#include <fluent-bit/flb_compat.h>
4245

4346
#define FLB_SUPERVISOR_DEFAULT_FORCE_TIMEOUT 10
4447
#define FLB_SUPERVISOR_CHILD_TITLE "fluent-bit-child"

0 commit comments

Comments
 (0)