mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-19 19:40:56 +00:00
Stop pretending that sl_* API is BSD-compatible
PUBLISHED_FROM=355fea9a5a75ac926d4c64d41828ebcd96c04080
This commit is contained in:
1 parent
abbd44e276
commit
7414a4fb06
2 files changed
+16
-35
No files matched your search
-20
@@ -732,31 +732,11 @@ int _stat(const char *pathname, struct stat *st);
|
||||
#define SOCK_STREAM SL_SOCK_STREAM
|
||||
#define SOCK_DGRAM SL_SOCK_DGRAM
|
||||
|
||||
#define FD_SET SL_FD_SET
|
||||
#define FD_CLR SL_FD_CLR
|
||||
#define FD_ISSET SL_FD_ISSET
|
||||
#define FD_ZERO SL_FD_ZERO
|
||||
#define fd_set SlFdSet_t
|
||||
|
||||
#define htonl sl_Htonl
|
||||
#define ntohl sl_Ntohl
|
||||
#define htons sl_Htons
|
||||
#define ntohs sl_Ntohs
|
||||
|
||||
#define accept sl_Accept
|
||||
#define closesocket sl_Close
|
||||
#define bind sl_Bind
|
||||
#define connect sl_Connect
|
||||
#define listen sl_Listen
|
||||
#define recv sl_Recv
|
||||
#define recvfrom sl_RecvFrom
|
||||
#define send sl_Send
|
||||
#define sendto sl_SendTo
|
||||
#define socket sl_Socket
|
||||
|
||||
#define select(nfds, rfds, wfds, efds, tout) \
|
||||
sl_Select((nfds), (rfds), (wfds), (efds), (struct SlTimeval_t *)(tout))
|
||||
|
||||
#ifndef EACCES
|
||||
#define EACCES SL_EACCES
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user