Bug 3383 - Initial OpenBSD support
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Platform
Version: GIT MASTER
Hardware: PC OpenBSD
: P3 enhancement
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL: http://hifi.pp.fi/openbsd/ports/patch...
Depends on:
Blocks:
 
Reported: 2007-10-12 18:33 EDT by Toni Spets
Modified: 2007-10-12 19:27:59 EDT
0 users

See Also:


Attachments
OpenBSD patch (3.19 KB, patch)
2007-10-12 18:36 EDT, Toni Spets

Description Toni Spets 2007-10-12 18:33:54 EDT
The patch at URL enables compiling on OpenBSD. Makefile and q_platform.h are based on the FreeBSD version.

The code is excellent. I didn't have to patch anything else than trivial things to get it working. QVM doesn't work as there are some security limitations in OpenBSD that prevents it.

OpenBSD's SDL doesn't have a working SDL_LoadObject() implementation so I had to add OpenBSD to the dedicated ifdef in sys_loadlib.h.

Probably it will work on other archs than i386 but I don't have the hardware to test it so the patch doesn't have them enabled.

And when you remember there is no OpenGL acceleration available on OpenBSD... wait and see ;)
Comment 1 Toni Spets 2007-10-12 18:36:21 EDT
Created attachment 1538 [details]
OpenBSD patch

Added the patch itself.
Comment 2 Tim Angus 2007-10-12 19:27:59 EDT
Thanks.