aboutsummaryrefslogtreecommitdiff
path: root/src/compat/linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat/linux.h')
-rw-r--r--src/compat/linux.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/compat/linux.h b/src/compat/linux.h
new file mode 100644
index 0000000..ccc8536
--- /dev/null
+++ b/src/compat/linux.h
@@ -0,0 +1,31 @@
1/*
2 * Copyright (C) 2007-2010 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#ifdef __linux__
9
10#define bu_inet_ntoa inet_ntoa
11#define bu_inet_addr inet_addr
12#define bu_select select
13#define bu_socket socket
14#define bu_shutdown shutdown
15#define bu_htons htons
16#define bu_htonl htonl
17#define bu_gethostbyname gethostbyname
18#define bu_freeaddrinfo freeaddrinfo
19#define bu_getaddrinfo getaddrinfo
20#define bu_connect connect
21#define bu_getpeername getpeername
22#define bu_setsockopt setsockopt
23#define bu_bind bind
24#define bu_listen listen
25#define bu_accept accept
26#define bu_send send
27#define bu_recv recv
28
29#define bu_gai_strerror gai_strerror
30
31#endif