Minor bug in last change related to threading id.
#include <share.h>
#endif
#elif defined(__linux__) || \
- ((defined(__APPLE__) && defined(__MACH__)) || defined(__MACOSX__)
+ (defined(__APPLE__) && defined(__MACH__)) || defined(__MACOSX__)
#define _GNU_SOURCE
#include <unistd.h>
#include <sys/syscall.h>
