Server platform works on OS X too
This commit is contained in:
@ -28,10 +28,13 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
#include <stdlib.h>
|
||||
#define PTHREAD_BSD_SET_NAME
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
#define PTHREAD_RENAME_SELF
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user