All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala-native.sys.ioctl.c Maven / Gradle / Ivy

There is a newer version: 0.5.5
Show newest version
#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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy