add minimal winsock->BSD networking header shims
also add license header to existing shims
This commit is contained in:
11
include/sys/ioctl.h
Normal file
11
include/sys/ioctl.h
Normal 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
|
@@ -1,3 +1,8 @@
|
||||
/*
|
||||
* Public domain
|
||||
* sys/mman.h compatibility shim
|
||||
*/
|
||||
|
||||
#include_next <sys/mman.h>
|
||||
|
||||
#ifndef LIBCRYPTOCOMPAT_MMAN_H
|
||||
|
10
include/sys/select.h
Normal file
10
include/sys/select.h
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Public domain
|
||||
* sys/select.h compatibility shim
|
||||
*/
|
||||
|
||||
#ifndef _WIN32
|
||||
#include_next <sys/select.h>
|
||||
#else
|
||||
#include <win32netcompat.h>
|
||||
#endif
|
10
include/sys/socket.h
Normal file
10
include/sys/socket.h
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Public domain
|
||||
* sys/socket.h compatibility shim
|
||||
*/
|
||||
|
||||
#ifndef _WIN32
|
||||
#include_next <sys/socket.h>
|
||||
#else
|
||||
#include <win32netcompat.h>
|
||||
#endif
|
10
include/sys/times.h
Normal file
10
include/sys/times.h
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Public domain
|
||||
* sys/times.h compatibility shim
|
||||
*/
|
||||
|
||||
#ifndef _WIN32
|
||||
#include_next <sys/times.h>
|
||||
#else
|
||||
#include <win32netcompat.h>
|
||||
#endif
|
@@ -1,3 +1,8 @@
|
||||
/*
|
||||
* Public domain
|
||||
* sys/types.h compatibility shim
|
||||
*/
|
||||
|
||||
#include_next <sys/types.h>
|
||||
|
||||
#ifndef LIBCRYPTOCOMPAT_SYS_TYPES_H
|
||||
|
Reference in New Issue
Block a user