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

lib: include endian.h for lcfs-internal.h #184

Merged
merged 1 commit into from
Sep 6, 2023
Merged

lib: include endian.h for lcfs-internal.h #184

merged 1 commit into from
Sep 6, 2023

Conversation

nekopsykose
Copy link
Contributor

required for htole16 and friends


fixes a build with clang16 against musl:

In file included from ../composefs/libcomposefs/lcfs-writer.c:21:
../composefs/libcomposefs/lcfs-internal.h:35:9: error: call to undeclared function 'htole16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        return htole16(val);

this is because clang16 no longer permits using functions without a prototype first (implicit-decl)

libcomposefs/lcfs-internal.h Outdated Show resolved Hide resolved
required for htole16 and friends

Signed-off-by: psykose <alice@ayaya.dev>
@cgwalters cgwalters merged commit af86742 into containers:main Sep 6, 2023
8 checks passed
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.

None yet

2 participants