mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
d5225a693b
1. `libc/isystem/complex.h` (included when you do `#include <complex.h>`) defines `_COMPLEX_H`, and then proceeds to include `libc/complex.h`, which contains the actual complex-related declarations. However, they are *also* guarded by `_COMPLEX_H` and hence effectively ignored. Fix this by changing `_COMPLEX_H` to `COSMOPOLITAN_LIBC_COMPLEX_H_`, which is consistent with what the other headers (such as `math.h`) do. 2. Cosmopolitan could only support IPv4 multicast requests for sockets, since a declaration for `struct ipv6_mreq` was missing. Add support for IPv6, too, by adding the missing declaration.
22 lines
748 B
C
22 lines
748 B
C
#ifndef _NETDB_H
|
|
#define _NETDB_H
|
|
#include "libc/calls/weirdtypes.h"
|
|
#include "libc/sock/sock.h"
|
|
#include "libc/sock/struct/in6_pktinfo.h"
|
|
#include "libc/sock/struct/in_pktinfo.h"
|
|
#include "libc/sock/struct/ip_mreq.h"
|
|
#include "libc/sock/struct/ipv6_mreq.h"
|
|
#include "libc/sock/struct/sockaddr.h"
|
|
#include "libc/sock/struct/sockaddr6.h"
|
|
#include "libc/sysv/consts/in.h"
|
|
#include "libc/sysv/consts/inaddr.h"
|
|
#include "libc/sysv/consts/inet6.h"
|
|
#include "libc/sysv/consts/ip.h"
|
|
#include "libc/sysv/consts/ipport.h"
|
|
#include "libc/sysv/consts/ipproto.h"
|
|
#include "libc/sysv/consts/ipv6.h"
|
|
#include "libc/sysv/consts/mcast.h"
|
|
#include "libc/sysv/consts/pf.h"
|
|
#include "libc/sysv/consts/sock.h"
|
|
#include "third_party/musl/netdb.h"
|
|
#endif /* _NETDB_H */
|