From 5d0e4a0d2d44965fb963cbde6d36c12a4c1227a5 Mon Sep 17 00:00:00 2001 From: Michael Conrad Date: Mon, 4 Dec 2023 14:45:19 -0500 Subject: [PATCH] flb_lib: update examples and at least one test to use fluent-bit-minimal.h To verify that fluent-bit-minimal.h works, I updated one of the existing unit tests to use it. Many more unit tests could be switched, or a new unit test entirely could be added, but this seemed like the simplest solution for testing. I also updated the examples to use the new header, since this is what third party users will be looking at first. Signed-off-by: Michael Conrad --- examples/hello_world/hello_world.c | 4 +++- examples/out_lib/out_lib.c | 4 +++- tests/runtime/in_event_test.c | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/hello_world/hello_world.c b/examples/hello_world/hello_world.c index f4925bf674e..9b49d96e06e 100644 --- a/examples/hello_world/hello_world.c +++ b/examples/hello_world/hello_world.c @@ -17,7 +17,9 @@ * limitations under the License. */ -#include +#include +#include +#include int main() { diff --git a/examples/out_lib/out_lib.c b/examples/out_lib/out_lib.c index ada207b0c4f..fab39e18cde 100644 --- a/examples/out_lib/out_lib.c +++ b/examples/out_lib/out_lib.c @@ -17,7 +17,9 @@ * limitations under the License. */ -#include +#include +#include +#include #include int my_stdout_json(void *record, size_t size, void *data) diff --git a/tests/runtime/in_event_test.c b/tests/runtime/in_event_test.c index 1169d8fd821..773723c8c02 100644 --- a/tests/runtime/in_event_test.c +++ b/tests/runtime/in_event_test.c @@ -1,6 +1,6 @@ /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -#include +#include #include "flb_tests_runtime.h" void flb_test_input_event()