The first one would be included for Windows too which seems to be
an error. The second one is obviously redundant.
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#ifdef _WIN32
#include <windows.h>
#include <tchar.h>
#ifdef _WIN32
#include <windows.h>
#include <tchar.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <poll.h>
#endif
#ifdef __APPLE__
#include <poll.h>
#endif
#ifdef __APPLE__