scala-native.sys.ioctl.c Maven / Gradle / Ivy
#if defined(SCALANATIVE_COMPILE_ALWAYS) || \
defined(__SCALANATIVE_POSIX_SYS_IOCTL)
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include
#pragma comment(lib, "ws2_32.lib")
#else
#include
#endif
int scalanative_ioctl(int fd, long int request, void *argp) {
#ifdef _WIN32
return ioctlsocket(fd, request, argp);
#else
return ioctl(fd, request, argp);
#endif
}
long int scalanative_fionread() { return FIONREAD; }
#endif