mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
LibC: move in_addr and sockaddr_in to netinet/in.h
This commit is contained in:
parent
93e1728818
commit
f22322a06c
Notes:
sideshowbarker
2024-07-19 10:26:38 +09:00
Author: https://github.com/jcs Commit: https://github.com/SerenityOS/serenity/commit/f22322a06c1 Pull-request: https://github.com/SerenityOS/serenity/pull/992
@ -13,4 +13,15 @@ in_addr_t inet_addr(const char*);
|
||||
|
||||
#define IP_TTL 2
|
||||
|
||||
struct in_addr {
|
||||
uint32_t s_addr;
|
||||
};
|
||||
|
||||
struct sockaddr_in {
|
||||
uint16_t sin_family;
|
||||
uint16_t sin_port;
|
||||
struct in_addr sin_addr;
|
||||
char sin_zero[8];
|
||||
};
|
||||
|
||||
__END_DECLS
|
||||
|
@ -35,17 +35,6 @@ struct sockaddr {
|
||||
char sa_data[14];
|
||||
};
|
||||
|
||||
struct in_addr {
|
||||
uint32_t s_addr;
|
||||
};
|
||||
|
||||
struct sockaddr_in {
|
||||
uint16_t sin_family;
|
||||
uint16_t sin_port;
|
||||
struct in_addr sin_addr;
|
||||
char sin_zero[8];
|
||||
};
|
||||
|
||||
struct ucred {
|
||||
pid_t pid;
|
||||
uid_t uid;
|
||||
|
Loading…
Reference in New Issue
Block a user