MantisBT - Zandronum
View Issue Details
0004066Zandronum[All Projects] Bugpublic2022-12-28 20:042022-12-29 03:29
TDRR 
 
normalminoralways
newopen 
MicrosoftWindowsXP/Vista/7
3.1 
 
0004066: Fix compilation under Cygwin (patch)
Here's a patch to allow Cygwin to compile Zandronum. Currently it requires NO_SOUND=ON, as FMOD provides no support for anything other than Visual Studio on 64-bits.

Changes are mostly summarized as defining _GNU_SOURCE if compiling with Cygwin, fixing NO_SOUND (which used to always compile output_sdl even if it was on, so FMOD was required regardless), and ensuring alloca.h is included when necessary when compiling with Cygwin. Also ifdef-ing out the strlwr implementation when compiling with Cygwin.

As a side note, Cygwin-X must be installed, and Zandronum must be started through startxwin, otherwise the client will error out on SDL init with "No video device".
No tags attached.
diff cygwinfix.diff (6,076) 2022-12-28 20:04
https://zandronum.com/tracker/file_download.php?file_id=2794&type=bug
diff cygwinsoundfix.diff (16,867) 2022-12-29 03:28
https://zandronum.com/tracker/file_download.php?file_id=2795&type=bug
Issue History
2022-12-28 20:04TDRRNew Issue
2022-12-28 20:04TDRRFile Added: cygwinfix.diff
2022-12-29 03:28TDRRFile Added: cygwinsoundfix.diff
2022-12-29 03:29TDRRNote Added: 0022566

Notes
(0022566)
TDRR   
2022-12-29 03:29   
Added cygwinsoundfix.diff, which fixes compiling with sound support under Cygwin too.