aboutsummaryrefslogtreecommitdiff
path: root/src/compat/linux.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-13 13:43:57 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-13 13:43:57 +0000
commit2a943828287d2a861930d3facb2333c895ada205 (patch)
tree9e0cbd81f0b2e9f0d5739275507aea2ecb9115b8 /src/compat/linux.h
parent9a30a663e472774a45b78b3240f6a399637992fc (diff)
downloadlibbu++-2a943828287d2a861930d3facb2333c895ada205.tar.gz
libbu++-2a943828287d2a861930d3facb2333c895ada205.tar.bz2
libbu++-2a943828287d2a861930d3facb2333c895ada205.tar.xz
libbu++-2a943828287d2a861930d3facb2333c895ada205.zip
Finally rearranged the system to put all compatability files in a directory
called compat. I've updated the linux and windows builds and it looks pretty good. I also added a config.h file which we have to edit by hand until I can work on build some more. Linux File operations now use 64 bit mode, windows can't, or at least, I don't feel like researching it right now.
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