| Index: src/untrusted/nacl/nacl_irt_fdio.c
|
| diff --git a/src/untrusted/nacl/nacl_irt_fdio.c b/src/untrusted/nacl/nacl_irt_fdio.c
|
| index 03b3d60dd616c67ee686cea87ce8d2eab6365f37..e4c64d5fa2e0225ca16261c4e2c694eaa2eaaaa9 100644
|
| --- a/src/untrusted/nacl/nacl_irt_fdio.c
|
| +++ b/src/untrusted/nacl/nacl_irt_fdio.c
|
| @@ -8,19 +8,23 @@
|
|
|
| void __libnacl_irt_dev_fdio_init(void) {
|
| /* Attempt to load the 'dev-fdio' interface */
|
| - if (!__libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_2,
|
| + if (!__libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_3,
|
| &__libnacl_irt_dev_fdio,
|
| sizeof(__libnacl_irt_dev_fdio))) {
|
| - /*
|
| - * Fall back to old 'fdio' interface if the dev interface is
|
| - * not found.
|
| - */
|
| - if (!__libnacl_irt_query(NACL_IRT_FDIO_v0_1,
|
| - &__libnacl_irt_dev_fdio,
|
| - sizeof(struct nacl_irt_fdio))) {
|
| - __libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_1,
|
| - &__libnacl_irt_dev_fdio,
|
| - sizeof(struct nacl_irt_fdio));
|
| + if (!__libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_2,
|
| + &__libnacl_irt_dev_fdio,
|
| + sizeof(struct nacl_irt_fdio_v0_2))) {
|
| + /*
|
| + * Fall back to old 'fdio' interface if the dev interface is
|
| + * not found.
|
| + */
|
| + if (!__libnacl_irt_query(NACL_IRT_FDIO_v0_1,
|
| + &__libnacl_irt_dev_fdio,
|
| + sizeof(struct nacl_irt_fdio))) {
|
| + __libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_1,
|
| + &__libnacl_irt_dev_fdio,
|
| + sizeof(struct nacl_irt_fdio));
|
| + }
|
| }
|
| }
|
| }
|
|
|