diff options
author | decke <decke@FreeBSD.org> | 2011-12-02 22:04:47 +0800 |
---|---|---|
committer | decke <decke@FreeBSD.org> | 2011-12-02 22:04:47 +0800 |
commit | b4e04aab96bc7ffd74dd8d57c898a4fb6bd8ca11 (patch) | |
tree | c77379debce834358691bef3ab9048b989e5b5f0 /emulators | |
parent | f2ded8122c6e049e0907b59c56aeffba90a8ac0f (diff) | |
download | freebsd-ports-graphics-b4e04aab96bc7ffd74dd8d57c898a4fb6bd8ca11.tar.gz freebsd-ports-graphics-b4e04aab96bc7ffd74dd8d57c898a4fb6bd8ca11.tar.zst freebsd-ports-graphics-b4e04aab96bc7ffd74dd8d57c898a4fb6bd8ca11.zip |
- Fix error check for aio_error
- Bump PORTREVISION
Obtained from: https://www.virtualbox.org/changeset/38332
Feature safe: yes
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/virtualbox-ose/Makefile | 1 | ||||
-rw-r--r-- | emulators/virtualbox-ose/files/patch-src-VBox-Runtime-r3-freebsd-fileaio-freebsd.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose/Makefile b/emulators/virtualbox-ose/Makefile index f06ec40757a..e9be08d3b0c 100644 --- a/emulators/virtualbox-ose/Makefile +++ b/emulators/virtualbox-ose/Makefile @@ -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/ \ diff --git a/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-r3-freebsd-fileaio-freebsd.c b/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-r3-freebsd-fileaio-freebsd.c new file mode 100644 index 00000000000..671bb555218 --- /dev/null +++ b/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-r3-freebsd-fileaio-freebsd.c @@ -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); |