From dc38ef7a470a68fb46d7e43d950e6c7cc4d55006 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 2 Jan 2010 14:24:32 +0000 Subject: 3.4 --- eio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eio.c b/eio.c index d725bcd..7d54ca9 100644 --- a/eio.c +++ b/eio.c @@ -972,7 +972,11 @@ eio__sendfile (int ofd, int ifd, off_t offset, size_t count, etp_worker *self) if (res < 0 && (errno == ENOSYS || errno == EINVAL || errno == ENOTSOCK - || errno == ENOTSUP || errno == EOPNOTSUPP /* BSDs */ + /* BSDs */ +#ifdef ENOTSUP /* sigh, if the steenking pile called openbsd would only try to at least compile posix code... */ + || errno == ENOTSUP +#endif + || errno == EOPNOTSUPP /* BSDs */ #if __solaris || errno == EAFNOSUPPORT || errno == EPROTOTYPE #endif -- cgit v1.2.3