Added support for CS:GO on Mac OS X (bug 5459, r=psychonic).

This commit is contained in:
Scott Ehlert
2012-08-25 11:28:52 -05:00
parent 7441af67a8
commit 0d795fc651
6 changed files with 25 additions and 8 deletions
@@ -34,7 +34,9 @@
#if defined PLATFORM_POSIX
#include <sys/mman.h>
#ifndef PAGE_SIZE
#define PAGE_SIZE 4096
#endif
#define ALIGN(ar) ((long)ar & ~(PAGE_SIZE-1))
#define PAGE_EXECUTE_READWRITE PROT_READ|PROT_WRITE|PROT_EXEC
#endif