Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

api_internal includes and FreeBSD 12 #62

Open
jdeblese opened this issue Jan 1, 2022 · 0 comments
Open

api_internal includes and FreeBSD 12 #62

jdeblese opened this issue Jan 1, 2022 · 0 comments

Comments

@jdeblese
Copy link

jdeblese commented Jan 1, 2022

api_internal fails to compile on FreeBSD 12.2 due to issues with included headers: alloca() is provided by stdlib.h instead of alloca.h (which doesn't exist); and the endian functions are already defined in sys/endian.h (included by stdint.h). A simple fix would be to check for the __FreeBSD__ macro and not include alloca.h or define the endianness functions when set. I can submit a PR, if that's an acceptable solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant