Skip to content

feat(build): fix compilation on BSD#30

Merged
ABeltramo merged 2 commits intogames-on-whales:stablefrom
ReenigneArcher:fix/types/use-standard-types
Jul 8, 2025
Merged

feat(build): fix compilation on BSD#30
ABeltramo merged 2 commits intogames-on-whales:stablefrom
ReenigneArcher:fix/types/use-standard-types

Conversation

@ReenigneArcher
Copy link
Copy Markdown
Contributor

This PR replaces __u16 with std::uint16_t. The motivation for this PR is I am investigating compiling Sunshine on FreeBSD (LizardByte/Sunshine#4049). FreeBSD does not have linux/types.h. I found that using uint16_t does compile past that undefined type error; however, I am not 100% if this is the proper fix. I have an alternate here (ReenigneArcher@e5253e7) if that would be preferred.

@ABeltramo
Copy link
Copy Markdown
Member

I've added a toggle for the uhid implementation so that you can compile inputtino without including it.
If you set USE_UHID to OFF it will fall back to a more basic uinput implementation (which will lack all the advanced features like motion, gyro, trackpad, ...) that should allow you to compile Sunshine on BSD.

@ReenigneArcher ReenigneArcher changed the title fix(types): replace __u16 with uint16_t feat(build): fix compilation on BSD Jul 8, 2025
@ABeltramo ABeltramo merged commit 83cf70e into games-on-whales:stable Jul 8, 2025
12 checks passed
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