Add FreeBSD support to Serious Sam. Having working Linux and OS X support FreeBSD is really easy. Changes / additions are:
Add cmake stuff for FreeBSD. Set PLATFORM_UNIX to get all the nice unix stuff and add a new define PLATFORM_FREEBSD to distinguish FreeBSD from Linux.
Like OS X FreeBSD has no malloc.h, the malloc() functions are part of stdlib.h.
mntent.h is another linuxism, use the OS X code path.
Implement cpu speed detection using FreeBSDs sysctl() interface.
Please note:
FreeBSD needs the main executable compiled with -rdynamic. Since there's a patch in pull request #20 I didn't add it to my branch. Read: Merge #20 before this one.
This port is only for the 32 bit code path. I'll send another pull request (if necessary) as soon as the 64 bit or generic code path is done.
Add FreeBSD support to Serious Sam. Having working Linux and OS X support FreeBSD is really easy. Changes / additions are:
Please note: