--- libaitio/example/sendfile.c 2011/12/13 02:23:07 1.2 +++ libaitio/example/sendfile.c 2016/08/18 09:06:31 1.4 @@ -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");