mirror of
https://github.com/pissnet/angiosperm.git
synced 2025-08-03 17:12:29 +01:00
librb: further cleanups
This commit is contained in:
parent
dc7e6b42ca
commit
17e4e6af83
2 changed files with 7 additions and 10 deletions
librb/include
|
@ -33,15 +33,6 @@
|
|||
|
||||
#define FD_DESC_SZ 128 /* hostlen + comment */
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
#define rb_get_errno() do { errno = WSAGetLastError(); WSASetLastError(errno); } while(0)
|
||||
typedef SOCKET rb_platform_fd_t;
|
||||
#else
|
||||
#define rb_get_errno()
|
||||
typedef int rb_platform_fd_t;
|
||||
#endif
|
||||
|
||||
#define rb_hash_fd(x) ((x ^ (x >> RB_FD_HASH_BITS) ^ (x >> (RB_FD_HASH_BITS * 2))) & RB_FD_HASH_MASK)
|
||||
|
||||
#ifdef HAVE_WRITEV
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue