summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;