From 4e1a6f1b3c543b9fbeb882a9e97551f7c58ca65a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 25 Dec 2023 18:36:02 +0100 Subject: ports: curl :^) had to do a lot of hacky stuff, but it's there. worked on this on and off for a while now --- src/libc/include/netinet/in.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/libc/include/netinet/in.h (limited to 'src/libc/include/netinet') diff --git a/src/libc/include/netinet/in.h b/src/libc/include/netinet/in.h new file mode 100644 index 0000000..b56a22a --- /dev/null +++ b/src/libc/include/netinet/in.h @@ -0,0 +1,16 @@ +#pragma once +#include + +#define IPPROTO_TCP 1 +#define IPPROTO_UDP 2 +#define IPPROTO_IP 4 + +struct in_addr { + in_addr_t s_addr; +}; + +struct sockaddr_in { + sa_family_t sin_family; /* AF_INET */ + in_port_t sin_port; + struct in_addr sin_addr; +}; -- cgit v1.2.3