LibC: Fix netinet/in.h and arpa/inet.h definitions

This commit is contained in:
2025-05-20 19:08:57 +03:00
parent 6be3b1d7f2
commit ddcf414107
6 changed files with 47 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
#ifndef _INET_H
#define _INET_H 1
#ifndef _ARPA_INET_H
#define _ARPA_INET_H 1
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/arpa_inet.h.html
@@ -7,13 +7,8 @@
__BEGIN_DECLS
#include <netinet/in.h>
#include <inttypes.h>
uint32_t htonl(uint32_t);
uint16_t htons(uint16_t);
uint32_t ntohl(uint32_t);
uint16_t ntohs(uint16_t);
#include <bits/inet_common.h>
#include <bits/types/socklen_t.h>
in_addr_t inet_addr(const char* cp);
char* inet_ntoa(struct in_addr in);