--- libeio/libeio.m4 2010/01/02 12:49:34 1.8 +++ libeio/libeio.m4 2010/01/07 17:18:08 1.9 @@ -64,7 +64,7 @@ # include #if __linux # include -#elif __freebsd || defined __APPLE__ +#elif __FreeBSD__ || defined __APPLE__ # include # include #elif __hpux @@ -80,7 +80,7 @@ ssize_t res; #if __linux res = sendfile (fd, fd, offset, count); -#elif __freebsd +#elif __FreeBSD__ res = sendfile (fd, fd, offset, count, 0, &offset, 0); #elif __hpux res = sendfile (fd, fd, offset, count, 0, 0);