mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-04-15 20:28:45 +00:00
get rsync to build (#886)
This commit is contained in:
parent
04bd488da7
commit
eebc24b9cd
2 changed files with 35 additions and 1 deletions
|
@ -24,4 +24,39 @@
|
|||
&& (((const uint32_t *) (a))[2] == ((const uint32_t *) (b))[2]) \
|
||||
&& (((const uint32_t *) (a))[3] == ((const uint32_t *) (b))[3]))
|
||||
|
||||
# define IN6_IS_ADDR_UNSPECIFIED(a) \
|
||||
(((const uint32_t *) (a))[0] == 0 \
|
||||
&& ((const uint32_t *) (a))[1] == 0 \
|
||||
&& ((const uint32_t *) (a))[2] == 0 \
|
||||
&& ((const uint32_t *) (a))[3] == 0)
|
||||
|
||||
# define IN6_IS_ADDR_LOOPBACK(a) \
|
||||
(((const uint32_t *) (a))[0] == 0 \
|
||||
&& ((const uint32_t *) (a))[1] == 0 \
|
||||
&& ((const uint32_t *) (a))[2] == 0 \
|
||||
&& ((const uint32_t *) (a))[3] == htonl (1))
|
||||
|
||||
# define IN6_IS_ADDR_LINKLOCAL(a) \
|
||||
((((const uint32_t *) (a))[0] & htonl (0xffc00000)) \
|
||||
== htonl (0xfe800000))
|
||||
|
||||
# define IN6_IS_ADDR_SITELOCAL(a) \
|
||||
((((const uint32_t *) (a))[0] & htonl (0xffc00000)) \
|
||||
== htonl (0xfec00000))
|
||||
|
||||
# define IN6_IS_ADDR_V4MAPPED(a) \
|
||||
((((const uint32_t *) (a))[0] == 0) \
|
||||
&& (((const uint32_t *) (a))[1] == 0) \
|
||||
&& (((const uint32_t *) (a))[2] == htonl (0xffff)))
|
||||
|
||||
# define IN6_IS_ADDR_V4COMPAT(a) \
|
||||
((((const uint32_t *) (a))[0] == 0) \
|
||||
&& (((const uint32_t *) (a))[1] == 0) \
|
||||
&& (((const uint32_t *) (a))[2] == 0) \
|
||||
&& (ntohl (((const uint32_t *) (a))[3]) > 1))
|
||||
|
||||
#define IN6_IS_ADDR_MULTICAST(a) (((const uint8_t *) (a))[0] == 0xff)
|
||||
|
||||
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_NETINET_IN_H_ */
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include "libc/sock/struct/sockaddr.h"
|
||||
#include "libc/sysv/consts/af.h"
|
||||
#include "libc/sysv/consts/limits.h"
|
||||
#include "libc/sysv/consts/msg.h"
|
||||
#include "libc/sysv/consts/pf.h"
|
||||
#include "libc/sysv/consts/scm.h"
|
||||
#include "libc/sysv/consts/shut.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue