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

Move _XOPEN_SOURCE define to library CFLAGS #33

Closed
wants to merge 1 commit into from

Conversation

mschlumpp
Copy link
Member

Putting it into CFLAGS changes the behavior for all sources files in a Unikraft build and changes them from the implicit _DEFAULT_SOURCE to _XOPEN_SOURCE, which can break applications/libraries.

Putting it into CFLAGS changes the behavior for all sources files in a
Unikraft build and changes them from the implicit _DEFAULT_SOURCE to
_XOPEN_SOURCE, which can break applications/libraries.

Signed-off-by: Marco Schlumpp <marco@unikraft.io>
@razvand razvand self-assigned this Jan 27, 2023
Copy link
Member

@StefanJum StefanJum 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, depends on #32, since the old features.h file does not define _BSD_SOURCE and _XOPEN_SOURCE by default and trying to build without that commit will lead to undefined references to data types like timer_t, clockid_t, etc.

Copy link
Contributor

@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.

Approved-by: Razvan Deaconescu razvand@unikraft.io

@razvand razvand added the enhancement New feature or request label Jan 31, 2023
Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Stefan Jumarea stefanjumarea02@gmail.com

@mschlumpp mschlumpp deleted the mschlumpp/private-xopen-source branch July 19, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/merged enhancement New feature or request
Projects
Status: Done!
Development

Successfully merging this pull request may close these issues.

None yet

4 participants