`#include <unistd.h>` is where the definition for _POSIX_THREADS comes from. It sounds reasonable to wrap it in a !_WIN32.