Skip to content
Snippets Groups Projects
Commit 7acc903a authored by Simon Coggins's avatar Simon Coggins Committed by Henrik (Grubba) Grubbström
Browse files

Fixes for FreeBSD suggested by Simon Coggins <simon@oz.org>.

Rev: src/modules/files/sendfile.c:1.17
parent 1784aa2c
No related branches found
No related tags found
No related merge requests found
/* /*
* $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. * Sends headers + from_fd[off..off+len-1] + trailers to to_fd asyncronously.
* *
...@@ -41,6 +41,10 @@ ...@@ -41,6 +41,10 @@
#include <sys/stat.h> #include <sys/stat.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif /* HAVE_SYS_SOCKET_H */
#ifdef HAVE_SYS_UIO_H #ifdef HAVE_SYS_UIO_H
#include <sys/uio.h> #include <sys/uio.h>
#endif /* HAVE_SYS_UIO_H */ #endif /* HAVE_SYS_UIO_H */
...@@ -347,7 +351,7 @@ void *worker(void *this_) ...@@ -347,7 +351,7 @@ void *worker(void *this_)
fatal("FreeBSD style sendfile(): EFAULT\n"); fatal("FreeBSD style sendfile(): EFAULT\n");
break; break;
case EBADF: case EBADF:
case ENOTCON: case ENOTCONN:
case EPIPE: case EPIPE:
case EIO: case EIO:
case EAGAIN: case EAGAIN:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment