1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

- Fix error check for aio_error

- Bump PORTREVISION

Obtained from:	https://www.virtualbox.org/changeset/38332
Feature safe:	yes
This commit is contained in:
Bernhard Froehlich 2011-12-02 14:04:47 +00:00
parent 7312f3a176
commit 71895d7045
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=286767
2 changed files with 17 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= virtualbox-ose
DISTVERSION= 4.0.12
PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://tmp.chruetertee.ch/ \
http://freebsd.unixfreunde.de/sources/ \

View File

@ -0,0 +1,16 @@
Runtime/fileaio-freebsd: Fix error check for aio_error
Obtained-from: https://www.virtualbox.org/changeset/38332
--- src/VBox/Runtime/r3/freebsd/fileaio-freebsd.cpp.orig 2011-07-15 17:34:34.000000000 +0200
+++ src/VBox/Runtime/r3/freebsd/fileaio-freebsd.cpp 2011-11-21 09:33:26.155092865 +0100
@@ -416,7 +416,8 @@
{
pReqInt = pahReqs[i];
rcBSD = aio_error(&pReqInt->AioCB);
- if (rcBSD == EINVAL || rcBSD == EAGAIN)
+ if ( rcBSD == -1
+ && errno == EINVAL)
{
/* Was not submitted. */
RTFILEAIOREQ_SET_STATE(pReqInt, PREPARED);