aboutsummaryrefslogtreecommitdiff
path: root/src/compat
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2014-01-30 03:36:23 +0000
committerMike Buland <eichlan@xagasoft.com>2014-01-30 03:36:23 +0000
commit9072b0c98ba4f9412885a1a32002ee7214fd3dc0 (patch)
tree1f6f205c8f28da415fd12ce4a835b83efc52fb8c /src/compat
parent86e37bec7b2101555635201f83352c0e054f1849 (diff)
downloadlibbu++-9072b0c98ba4f9412885a1a32002ee7214fd3dc0.tar.gz
libbu++-9072b0c98ba4f9412885a1a32002ee7214fd3dc0.tar.bz2
libbu++-9072b0c98ba4f9412885a1a32002ee7214fd3dc0.tar.xz
libbu++-9072b0c98ba4f9412885a1a32002ee7214fd3dc0.zip
Attempting to fix OSX compatibility, it's not 100%, but it builds and most things seem to work. We've also tested against LLVM.
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/osx.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/compat/osx.h b/src/compat/osx.h
index 26dad4d..ae55507 100644
--- a/src/compat/osx.h
+++ b/src/compat/osx.h
@@ -21,6 +21,29 @@
21 21
22#include <sched.h> 22#include <sched.h>
23 23
24#define bu_inet_ntoa inet_ntoa
25#define bu_inet_addr inet_addr
26#define bu_select select
27#define bu_socket socket
28#define bu_shutdown shutdown
29#define bu_htons htons
30#define bu_htonl htonl
31#define bu_gethostbyname gethostbyname
32#define bu_freeaddrinfo freeaddrinfo
33#define bu_getaddrinfo getaddrinfo
34#define bu_connect connect
35#define bu_getpeername getpeername
36#define bu_setsockopt setsockopt
37#define bu_bind bind
38#define bu_listen listen
39#define bu_accept accept
40#define bu_send send
41#define bu_recv recv
42#define open64 open
43#define lseek64 lseek
44
45#define bu_gai_strerror gai_strerror
46
24#define pthread_yield() sched_yield() 47#define pthread_yield() sched_yield()
25#endif /* __APPLE__ */ 48#endif /* __APPLE__ */
26#endif 49#endif