Skip to content

openbsd patches#953

Merged
flyinghead merged 7 commits intoflyinghead:masterfrom
namtsui:openbsd
Feb 28, 2023
Merged

openbsd patches#953
flyinghead merged 7 commits intoflyinghead:masterfrom
namtsui:openbsd

Conversation

@namtsui
Copy link
Contributor

@namtsui namtsui commented Feb 28, 2023

Before I submit a port for OpenBSD for flycast, I would like to submit some patches. On OpenBSD 7.2 -current, BSS is now immutable and mprotect can't work. Mark it as mutable to allow mprotect to work. This is the main change for OpenBSD as of 7.2 -current (I had it working in 7.1.)

I applied a similar fix for the desmume port:
https://marc.info/?l=openbsd-ports&m=167055339501257&w=2

More information on mimmutable:
https://marc.info/?l=openbsd-tech&m=166874067828564&w=2

Moreover, I've included other fixes. I'm able to run flycast on OpenBSD with this and some other cmakelists changes, which I have omitted for ease of review.

Original issue where you helped me: libretro/flycast#624

<signal.h> provides `typedef struct sigcontext ucontext_t;'.
take register names from <machine/signal.h>, which provides struct
sigcontext.

see:
RPCS3/rpcs3@1a13d3a
Use sdl_open_joystick() to open controllers on startup instead of
SDL_JOYDEVICEADDED event, which never gets detected.
@namtsui
Copy link
Contributor Author

namtsui commented Feb 28, 2023

cc @scribam and @c64skin from #899 and #900

@flyinghead flyinghead merged commit a1472fb into flyinghead:master Feb 28, 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