aboutsummaryrefslogtreecommitdiff
path: root/src/compat
diff options
context:
space:
mode:
Diffstat (limited to '')
-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