diff options
Diffstat (limited to 'src/linux_compatibility.h')
-rw-r--r-- | src/linux_compatibility.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/linux_compatibility.h b/src/linux_compatibility.h new file mode 100644 index 0000000..67016a7 --- /dev/null +++ b/src/linux_compatibility.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifdef __linux__ | ||
2 | |||
3 | #define bu_inet_ntoa inet_ntoa | ||
4 | #define bu_inet_addr inet_addr | ||
5 | #define bu_select select | ||
6 | #define bu_socket socket | ||
7 | #define bu_htons htons | ||
8 | #define bu_htonl htonl | ||
9 | #define bu_gethostbyname gethostbyname | ||
10 | #define bu_freeaddrinfo freeaddrinfo | ||
11 | #define bu_getaddrinfo getaddrinfo | ||
12 | #define bu_connect connect | ||
13 | #define bu_getpeername getpeername | ||
14 | #define bu_setsockopt setsockopt | ||
15 | #define bu_bind bind | ||
16 | #define bu_listen listen | ||
17 | #define bu_accept accept | ||
18 | |||
19 | #define bu_gai_strerror gai_strerror | ||
20 | |||
21 | #endif | ||