summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2010-01-02 14:24:32 +0000
committerroot <root>2010-01-02 14:24:32 +0000
commitdc38ef7a470a68fb46d7e43d950e6c7cc4d55006 (patch)
tree1e88bbdac1c754ed7120c329b46e5cb4ef2aba4f
parentd5dbda31aa83cf0c1a999c70c0f75a01c774cc3f (diff)
-rw-r--r--eio.c6
1 files changed, 5 insertions, 1 deletions
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