Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_018Ae69wJS7sueQMUwNxV3nX
22 lines
389 B
C
22 lines
389 B
C
/*
|
|
* Minimal <netinet/in.h> for the MontaukOS NetSurf port.
|
|
* Only the address structures urldb.c and utils.c use for IP-literal parsing.
|
|
*/
|
|
#ifndef _MONTAUK_COMPAT_NETINET_IN_H_
|
|
#define _MONTAUK_COMPAT_NETINET_IN_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
struct in_addr {
|
|
uint32_t s_addr;
|
|
};
|
|
|
|
struct in6_addr {
|
|
uint8_t s6_addr[16];
|
|
};
|
|
|
|
#define INET_ADDRSTRLEN 16
|
|
#define INET6_ADDRSTRLEN 46
|
|
|
|
#endif
|