mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Initial import
This commit is contained in:
commit
c91b3c5006
14915 changed files with 590219 additions and 0 deletions
13
libc/dns/consts.h
Normal file
13
libc/dns/consts.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_DNS_CONSTS_H_
|
||||
#define COSMOPOLITAN_LIBC_DNS_CONSTS_H_
|
||||
#include "libc/sock/sock.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
#define DNS_TYPE_A 1
|
||||
#define DNS_CLASS_IN 1
|
||||
|
||||
#define kMinSockaddr4Size \
|
||||
(offsetof(struct sockaddr_in, sin_addr) + sizeof(struct in_addr))
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_DNS_CONSTS_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue