summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoshua stein <jcs@jcs.org>2020-01-01 20:45:02 -0600
committerAndreas Kling <awesomekling@gmail.com>2020-01-02 04:09:56 +0100
commitf22322a06c19af9c2a9bab5e7454c425873c249c (patch)
tree4c9fc674b958302be954849fc0632cb3af774332
parent93e1728818a3d37c118b98c0130ed78c9821b2ac (diff)
downloadserenity-f22322a06c19af9c2a9bab5e7454c425873c249c.zip
LibC: move in_addr and sockaddr_in to netinet/in.h
-rw-r--r--Libraries/LibC/netinet/in.h11
-rw-r--r--Libraries/LibC/sys/socket.h11
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;