#ifndef _LATER_FD_H_ #define _LATER_FD_H_ #ifdef _WIN32 #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0600 // so R <= 4.1 can find WSAPoll() on Windows #endif #include #else #include #endif #ifdef _WIN32 #define LATER_POLL_FUNC WSAPoll #define LATER_NFDS_T ULONG #else #define LATER_POLL_FUNC poll #define LATER_NFDS_T nfds_t #endif #endif // _LATER_FD_H_