From 9072b0c98ba4f9412885a1a32002ee7214fd3dc0 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 30 Jan 2014 03:36:23 +0000 Subject: Attempting to fix OSX compatibility, it's not 100%, but it builds and most things seem to work. We've also tested against LLVM. --- src/compat/osx.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/compat') 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 @@ #include +#define bu_inet_ntoa inet_ntoa +#define bu_inet_addr inet_addr +#define bu_select select +#define bu_socket socket +#define bu_shutdown shutdown +#define bu_htons htons +#define bu_htonl htonl +#define bu_gethostbyname gethostbyname +#define bu_freeaddrinfo freeaddrinfo +#define bu_getaddrinfo getaddrinfo +#define bu_connect connect +#define bu_getpeername getpeername +#define bu_setsockopt setsockopt +#define bu_bind bind +#define bu_listen listen +#define bu_accept accept +#define bu_send send +#define bu_recv recv +#define open64 open +#define lseek64 lseek + +#define bu_gai_strerror gai_strerror + #define pthread_yield() sched_yield() #endif /* __APPLE__ */ #endif -- cgit v1.2.3