mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 09:17:53 +00:00
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.
12 lines
396 B
C
12 lines
396 B
C
#ifndef COSMOPOLITAN_LIBC_SOCK_STRUCT_IPV6_MREQ_H_
|
|
#define COSMOPOLITAN_LIBC_SOCK_STRUCT_IPV6_MREQ_H_
|
|
#include "libc/sock/struct/sockaddr6.h"
|
|
COSMOPOLITAN_C_START_
|
|
|
|
struct ipv6_mreq {
|
|
struct in6_addr ipv6mr_multiaddr; /* IPv6 multicast address of group */
|
|
unsigned ipv6mr_interface; /* local interface */
|
|
};
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_LIBC_SOCK_STRUCT_IPV6_MREQ_H_ */
|