--- libaitio/example/sendfile.c 2013/06/25 09:26:49 1.2.44.1 +++ libaitio/example/sendfile.c 2016/08/18 09:06:31 1.4 @@ -16,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");