From 5784031c8874499bc3ab2d8539f15f7fec332710 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sat, 25 Sep 2021 18:49:16 +0100 Subject: Added .gitignore and fix errors on MacOS --- serv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'serv.c') diff --git a/serv.c b/serv.c index 093cc12..3fb88ac 100644 --- a/serv.c +++ b/serv.c @@ -4,6 +4,9 @@ #include #include #include +#include + +#include #include @@ -95,7 +98,7 @@ int main(int argc, char *argv[]) struct sockaddr_in addr; char buff[1024]; int len; - int addrlen; + socklen_t addrlen; int sock_fd; int connect_fd; -- cgit v1.2.3