diff --git a/src/modules/files/sendfile.c b/src/modules/files/sendfile.c index 61377cb9b87008834314c0f9eda919b69327cf30..736907f17c3e5190968606c623fb12df0d1ef70d 100644 --- a/src/modules/files/sendfile.c +++ b/src/modules/files/sendfile.c @@ -1,5 +1,5 @@ /* - * $Id: sendfile.c,v 1.16 1999/05/01 21:50:49 grubba Exp $ + * $Id: sendfile.c,v 1.17 1999/05/07 14:58:13 grubba Exp $ * * Sends headers + from_fd[off..off+len-1] + trailers to to_fd asyncronously. * @@ -41,6 +41,10 @@ #include <sys/stat.h> +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif /* HAVE_SYS_SOCKET_H */ + #ifdef HAVE_SYS_UIO_H #include <sys/uio.h> #endif /* HAVE_SYS_UIO_H */ @@ -347,7 +351,7 @@ void *worker(void *this_) fatal("FreeBSD style sendfile(): EFAULT\n"); break; case EBADF: - case ENOTCON: + case ENOTCONN: case EPIPE: case EIO: case EAGAIN: