Opened 5 months ago

Last modified 3 months ago

#72022 new enhancement

dosbox-x @2025.01.01: Patches to build on macOS 10.11.6

Reported by: kogule (Kogulé, Ryo) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: haspatch elcapitan Cc: aeiouaeiouaeiouaeiouaeiouaeiou
Port: dosbox-x

Description

Attached patches make dosbox-x succeed to build on macOS 10.11.6.

patch-src_gui_sdlmain.cpp.diff

dosbox-x misuses BSD macro to tell apart BSDs from macOS. It uses BSD macro for BSD variants except macOS and MACOSX macro for macOS but macOS even defines BSD in sys/param.h. Because legacy-support indirectly includes sys/param.h, src/gui/sdlmain.cpp fails to identify the building system on old macOS. This patch let it properly identify the system.

patch-src_gui_sdl__mapper.cpp.diff

macOS's AssertMacros.h defines check() macro and it conflicts with DOSBoxMenu::item.check().

patch-include_enet.h.diff

dosbox-x defines its own clock_gettime() for old macOS.

Attachments (3)

patch-src_gui_sdlmain.cpp.diff (1.3 KB) - added by kogule (Kogulé, Ryo) 5 months ago.
patch-src_gui_sdl__mapper.cpp.diff (461 bytes) - added by kogule (Kogulé, Ryo) 5 months ago.
patch-include_enet.h.diff (806 bytes) - added by kogule (Kogulé, Ryo) 5 months ago.

Download all attachments as: .zip

Change History (6)

Changed 5 months ago by kogule (Kogulé, Ryo)

Changed 5 months ago by kogule (Kogulé, Ryo)

Changed 5 months ago by kogule (Kogulé, Ryo)

Attachment: patch-include_enet.h.diff added

comment:1 Changed 5 months ago by jmroot (Joshua Root)

Port: dosbox-x added

comment:2 Changed 3 months ago by aeiouaeiouaeiouaeiouaeiouaeiou

Cc: aeiouaeiouaeiouaeiouaeiouaeiou added

comment:3 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch elcapitan added

Did you invent these patches or did they come from the developers of dosbox-x?

If the former, please submit them to the developers and provide the URL here.

If the latter, please provide the URL that you got the patches from.

Note: See TracTickets for help on using tickets.