diff options
author | joshua stein <jcs@jcs.org> | 2020-01-01 20:45:02 -0600 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-02 04:09:56 +0100 |
commit | f22322a06c19af9c2a9bab5e7454c425873c249c (patch) | |
tree | 4c9fc674b958302be954849fc0632cb3af774332 | |
parent | 93e1728818a3d37c118b98c0130ed78c9821b2ac (diff) | |
download | serenity-f22322a06c19af9c2a9bab5e7454c425873c249c.zip |
LibC: move in_addr and sockaddr_in to netinet/in.h
-rw-r--r-- | Libraries/LibC/netinet/in.h | 11 | ||||
-rw-r--r-- | Libraries/LibC/sys/socket.h | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/Libraries/LibC/netinet/in.h b/Libraries/LibC/netinet/in.h index fa342e3000..c44895b0c5 100644 --- a/Libraries/LibC/netinet/in.h +++ b/Libraries/LibC/netinet/in.h @@ -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 diff --git a/Libraries/LibC/sys/socket.h b/Libraries/LibC/sys/socket.h index af98d67d05..6bbbd3cca1 100644 --- a/Libraries/LibC/sys/socket.h +++ b/Libraries/LibC/sys/socket.h @@ -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; |