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

core: fix includes in utils.c causing compilation failure because of undefined be64toh/htobe64 #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sedmicha
Copy link
Collaborator

@sedmicha sedmicha commented Jun 6, 2024

#include <ipfixcol2.h> resulted in including a file in which be64toh/htobe64 functions were used. This would clash with the defines present here that are necessary to get the wanted strerror_r function, resulting in the be64toh/htobe64 functions being undefined.

This was fixed by not including ipfixcol2.h as a whole, but only the necessary part, as well as adding explicit includes for the system headers that were brought by ipfixcol2.h.

#include <ipfixcol2.h> resulted in including a file in which
be64toh/htobe64 functions were used. This would clash with the defines
present here that are necessary to get the wanted strerror_r function,
resulting in the be64toh/htobe64 functions being undefined.

This was fixed by not including ipfixcol2.h as a whole, but only the
necessary part, as well as adding explicit includes for the system
headers that were brought by ipfixcol2.h.
@sedmicha sedmicha requested a review from Lukas955 June 6, 2024 13:05
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.

1 participant