Skip to content

Commit d37d2fa

Browse files
committed
fadvise is not present on OpenBSD.
It is just a hint, after all, so it is not an error if it is unavailable.
1 parent 99fce10 commit d37d2fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/io.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2328,8 +2328,11 @@ _dispatch_operation_advise(dispatch_operation_t op, size_t chunk_size)
23282328
case ESPIPE: break; // fd refers to a pipe or FIFO
23292329
default: (void)dispatch_assume_zero(err); break;
23302330
}
2331+
#elif defined(__OpenBSD__)
2332+
(void)err;
23312333
#else
23322334
#error "_dispatch_operation_advise not implemented on this platform"
2335+
(void)err;
23332336
#endif // defined(F_RDADVISE)
23342337
#endif // defined(_WIN32)
23352338
}

0 commit comments

Comments
 (0)