summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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