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

kernel: replace BSD types with stdint's in kevent's flags #236

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

pipehuffer
Copy link

This fixes an issue of undefined types when compiling programs without GNU extensions (for example, with -std=c11).
kevent's structure size and offsets remain the same with this change, so nothing should be broken by this.
Note that this doesn't solve using C++ without GNU extensions (like -std=c++14), since libcxx seems to have a hard dependency on some definitions guarded by extension macros (see musl's locale.h and libcxx's __locale).

I've built and ran the graphics sample with this successfully (it uses kevent here, OrbisKernelEvent is an alias)

@kiwidoggie kiwidoggie merged commit c63c9e6 into OpenOrbis:master Mar 21, 2023
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