Server platform works on OS X too

This commit is contained in:
Marcelo Fernandez
2018-10-25 10:59:26 -03:00
parent 7a42df3626
commit fe93bb03fe
11 changed files with 61 additions and 8 deletions

View File

@ -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