Created
August 5, 2016 04:05
-
-
Save gromgit/2a9f210a2975631bc34c0a2557c9cb84 to your computer and use it in GitHub Desktop.
Kore compatibility patch for macOS <= Mavericks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** kore-2.0.0/src/pool.c.orig Fri Aug 5 10:21:29 2016 | |
--- kore-2.0.0/src/pool.c Fri Aug 5 11:04:37 2016 | |
*************** | |
*** 21,26 **** | |
--- 21,35 ---- | |
#include "kore.h" | |
+ // FIX: macOS <= Mavericks doesn't define MAP_ANONYMOUS | |
+ #ifndef MAP_ANONYMOUS | |
+ # ifdef MAP_ANON | |
+ # define MAP_ANONYMOUS MAP_ANON | |
+ # else | |
+ # define MAP_ANONYMOUS 0 | |
+ # endif | |
+ #endif | |
+ | |
#define POOL_ELEMENT_BUSY 0 | |
#define POOL_ELEMENT_FREE 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment