--- libaitio/example/sendfile.c 2013/06/26 22:48:53 1.3 +++ libaitio/example/sendfile.c 2016/08/11 16:18:15 1.3.38.1 @@ -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");