Skip to content

Fixing Linux Issues#8

Merged
differrari merged 4 commits into
differrari:mainfrom
Ghostboo124:main
Jun 27, 2025
Merged

Fixing Linux Issues#8
differrari merged 4 commits into
differrari:mainfrom
Ghostboo124:main

Conversation

@Ghostboo124
Copy link
Copy Markdown
Contributor

I encountered a few issues while compiling and running on Linux that I have fixed. The bool keyword is reserved as of C23, so I have adding in the CFLAGS to use C17 (the standard before C23), vmnet-bridged is a MacOS only feature and needs to be changed for Linux, and the asm keyword isn't defined by some compilers, but asm is there is a check for that in the files that use the asm keyword

C17 has been chosen because C23 has the `bool` as a reserved keyword, but bool has been defined in shared/types.h causing errors.
Fixing the shebang to be #!/ instead of #/!

Multiplatform support for qemu networking as vmnet-bridged is a MacOS only feature
@differrari
Copy link
Copy Markdown
Owner

It might be worth putting the asm defines into types.h, it's included by pretty much every other file
The fix for the vmnet issue is not included here correct? I might end up making a separate macos file since there's a couple other considerations to make to get it to work

@Ghostboo124
Copy link
Copy Markdown
Contributor Author

I'll move that asm fix now and there is a fix for the vmnet issue

@differrari
Copy link
Copy Markdown
Owner

I'll add the change to the raspberry pi branch as well, since it'll be overwritten eventually anyway. Thanks for the fixes

@differrari differrari merged commit 9d65cba into differrari:main Jun 27, 2025
1 check passed
differrari pushed a commit that referenced this pull request Jun 27, 2025
differrari pushed a commit that referenced this pull request Aug 9, 2025
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