#include <errno.h>
#include <sys/time.h>
#ifndef __APPLE__
#include <errno.h>
#include <sys/time.h>
#ifndef __APPLE__
#endif
#include <pthread.h>
#include <poll.h>
#include <semaphore.h>
#endif
#include <pthread.h>
#include <poll.h>
#include <semaphore.h>
#define LIBTYPE
#define DECLSPEC
#define LIBTYPE
#define DECLSPEC