From: Brad Smith <b...@comstyle.com> OpenBSD prior to 6.3 required a workaround to utilize fcntl(F_SETFL) on memory devices.
Since modern verions of OpenBSD that are only officialy supported and buildable on do not have this issue I am garbage collecting this workaround. Signed-off-by: Brad Smith <b...@comstyle.com> Message-Id: <ygyecgxqhdame...@humpty.home.comstyle.com> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> --- util/oslib-posix.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 36820fec16..7b4bec1402 100644 --- a/util/oslib-posix.c +++ b/util/oslib-posix.c @@ -273,17 +273,6 @@ int qemu_try_set_nonblock(int fd) return -errno; } if (fcntl(fd, F_SETFL, f | O_NONBLOCK) == -1) { -#ifdef __OpenBSD__ - /* - * Previous to OpenBSD 6.3, fcntl(F_SETFL) is not permitted on - * memory devices and sets errno to ENODEV. - * It's OK if we fail to set O_NONBLOCK on devices like /dev/null, - * because they will never block anyway. - */ - if (errno == ENODEV) { - return 0; - } -#endif return -errno; } return 0; -- 2.31.1