--- libaitio/example/sendfile.c 2011/11/02 16:11:09 1.1.2.1 +++ libaitio/example/sendfile.c 2016/08/11 16:18:15 1.3.38.1 @@ -1,7 +1,9 @@ #include +#include #include #include #include +#include #include @@ -14,7 +16,9 @@ main(int argc, char **argv) if (argc < 3) return 1; +#ifndef __linux__ sin.sin_len = sizeof sin; +#endif sin.sin_family = AF_INET; sin.sin_port = htons(5000); sin.sin_addr.s_addr = inet_addr("127.0.0.1");