Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out_cloudwatch_logs: Rename 'event' to 'cw_event' #2319

Merged
merged 1 commit into from
Jul 2, 2020

Conversation

fujimotos
Copy link
Member

libevent exports a struct with the same name (struct event in
event2/event_struct.h). For this reason, this plugin fails to
compile if libevent backend is enabled.

Also unistd.h is not POSIX standard and not all platforms (in
particular Windows) do not provide it. Include flb_compat.h to
abstract away the header inclusion.

With this patch, I can confirm out_cloudwatch_logs can be compiled
and run on Windows.

Signed-off-by: Fujimoto Seiji fujimoto@ceptord.net

libevent exports a struct with the same name (`struct event` in
event2/event_struct.h). For this reason, this plugin fails to
compile if libevent backend is enabled.

Also unistd.h is not POSIX standard and not all platforms (in
particular Windows) do not provide it. Include flb_compat.h to
abstract away the header inclusion.

With this patch, I can confirm out_cloudwatch_logs can be compiled
and run on Windows.

Signed-off-by: Fujimoto Seiji <fujimoto@ceptord.net>
@fujimotos
Copy link
Member Author

CC: @PettitWesley

Addendum: This patch makes Windows CI green again

Copy link
Contributor

@PettitWesley PettitWesley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fujimotos Thank you!

@edsiper edsiper merged commit 61ef808 into fluent:master Jul 2, 2020
@fujimotos fujimotos deleted the sf/win32-cloudwatch branch July 3, 2020 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants