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

patches: Include the first stddef header file #18

Closed
wants to merge 1 commit into from

Conversation

StefanJum
Copy link
Member

When using Musl, the build breaks because the
include_next cannot find a new stddef.h
header file.

This is just a hack to go around it and include
the Musl stddef.h file, we should find a
proper sollution to this.

Related to: #12

Signed-off-by: Stefan Jumarea stefanjumarea02@gmail.com

@StefanJum StefanJum added bug Something isn't working help wanted Extra attention is needed labels Oct 29, 2022
@razvand razvand marked this pull request as draft October 29, 2022 14:45
@StefanJum StefanJum marked this pull request as ready for review November 10, 2022 10:20
@StefanJum StefanJum changed the title [RFC]: Include the first stddef header file patches: Include the first stddef header file Nov 10, 2022
@StefanJum StefanJum removed the help wanted Extra attention is needed label Nov 10, 2022
@StefanJum StefanJum linked an issue Nov 10, 2022 that may be closed by this pull request
Copy link
Contributor

@mariasfiraiala mariasfiraiala left a comment

Choose a reason for hiding this comment

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

Looks good. Tested it on both x86 and AArch64 with helloworld-cpp and it behaved just fine.

Reviewed-by: Maria Sfiraiala maria.sfiraiala@gmail.com

When using Musl, the build breaks because the `include_next` cannot find
a new `stddef.h` header file.

Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Copy link

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Thanks, @StefanJum

Reviewed-by: Razvan Deaconescu razvand@unikraft.io
Approved-by: Razvan Deaconescu razvand@unikraft.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci/merged
Projects
Status: Done
Status: Done!
Development

Successfully merging this pull request may close these issues.

stddef.h not found when building with musl.
4 participants