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

Use C99 types for uint32_t #2332

Merged
merged 2 commits into from
May 10, 2024
Merged

Use C99 types for uint32_t #2332

merged 2 commits into from
May 10, 2024

Conversation

thesamesam
Copy link
Contributor

<stdint.h> provides uint32_t, while u_int_32 is an unofficial/internal typedef that glibc happens to provide. This fixes the build on musl.

Bug: https://bugs.gentoo.org/931194

@thesamesam
Copy link
Contributor Author

For completeness, I've submitted linux-nvme/libnvme#838 too.

<stdint.h> provides `uint32_t`, while `u_int_32` is an unofficial/internal
typedef that glibc happens to provide. This fixes the build on musl.

Bug: https://bugs.gentoo.org/931194
Signed-off-by: Sam James <sam@gentoo.org>
`u_char` is not a standard name for `unsigned char` and may not work;
some implementations may provide it for convenience.

Signed-off-by: Sam James <sam@gentoo.org>
@igaw
Copy link
Collaborator

igaw commented May 10, 2024

added prefix to commit subject

@igaw igaw merged commit 0b15eb0 into linux-nvme:master May 10, 2024
15 checks passed
@igaw
Copy link
Collaborator

igaw commented May 10, 2024

Thanks!

@thesamesam thesamesam deleted the musl-c99 branch May 10, 2024 16:23
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.

2 participants