add minimal winsock->BSD networking header shims

also add license header to existing shims
This commit is contained in:
Brent Cook
2014-11-19 07:43:07 -06:00
committed by Brent Cook
parent 1bbde19a7c
commit cccdd689e3
20 changed files with 205 additions and 2 deletions

11
include/sys/ioctl.h Normal file
View File

@@ -0,0 +1,11 @@
/*
* Public domain
* sys/ioctl.h compatibility shim
*/
#ifndef _WIN32
#include_next <sys/ioctl.h>
#else
#include <win32netcompat.h>
#define ioctl(fd, type, arg) ioctlsocket(fd, type, arg)
#endif