8 changed files with 71 additions and 0 deletions
@ -0,0 +1,5 @@
|
||||
#pragma once |
||||
|
||||
#include_next <errno.h> |
||||
|
||||
#define ESHUTDOWN (__ELASTERROR + 1) |
||||
@ -0,0 +1,24 @@
|
||||
#ifndef _NET_IF_H |
||||
#define _NET_IF_H 1 |
||||
|
||||
#define IF_NAMESIZE 16 |
||||
|
||||
struct if_nameindex { |
||||
unsigned int if_index; |
||||
char *if_name; |
||||
}; |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
unsigned int if_nametoindex(const char *__ifname); |
||||
char *if_indextoname(unsigned int __ifindex, char *__ifname); |
||||
struct if_nameindex *if_nameindex(); |
||||
void if_freenameindex(struct if_nameindex *__ptr); |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
||||
#endif |
||||
@ -0,0 +1,8 @@
|
||||
#pragma once |
||||
|
||||
#include_next <netinet/in.h> |
||||
|
||||
struct ipv6_mreq { |
||||
struct in6_addr ipv6mr_multiaddr; |
||||
unsigned ipv6mr_interface; |
||||
}; |
||||
@ -0,0 +1,10 @@
|
||||
#ifndef _SYS_UIO_H |
||||
#define _SYS_UIO_H 1 |
||||
|
||||
#include <sys/types.h> |
||||
#include <sys/_iovec.h> |
||||
|
||||
ssize_t readv(int __fd, const struct iovec *__iovec, int __count); |
||||
ssize_t writev(int __fd, const struct iovec *__iovec, int __count); |
||||
|
||||
#endif |
||||
@ -0,0 +1,16 @@
|
||||
#ifndef _SYS_UN_H |
||||
#define _SYS_UN_H 1 |
||||
|
||||
#include <sys/types.h> |
||||
|
||||
#ifndef _SA_FAMILY_T_DECLARED |
||||
typedef __sa_family_t sa_family_t; |
||||
#define _SA_FAMILY_T_DECLARED |
||||
#endif |
||||
|
||||
struct sockaddr_un { |
||||
sa_family_t sun_family; |
||||
char sun_path[108]; |
||||
}; |
||||
|
||||
#endif |
||||
@ -0,0 +1,5 @@
|
||||
# Enables a number of header file definitions required by ASIO |
||||
target_compile_definitions(asio INTERFACE _DEFAULT_SOURCE=ON) |
||||
|
||||
# Missing headers and declarations provided by DevilutionX |
||||
target_include_directories(asio BEFORE INTERFACE CMake/switch/asio/include) |
||||
Loading…
Reference in new issue