| Index: native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c
|
| diff --git a/native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c b/native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c
|
| index dd235304d5667c06ce2e6d50f947ba9b264ed07f..c1cd7d004a02b030edfea5a56c1f5c18e6afb081 100644
|
| --- a/native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c
|
| +++ b/native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c
|
| @@ -2,9 +2,15 @@
|
| * Use of this source code is governed by a BSD-style license that can be
|
| * found in the LICENSE file. */
|
|
|
| +#include <stdarg.h>
|
| +
|
| #include "nacl_io/kernel_intercept.h"
|
| #include "nacl_io/kernel_wrap.h"
|
|
|
| -int ioctl(int d, int request, char* argp) {
|
| - return ki_ioctl(d, request, argp);
|
| +int ioctl(int fd, unsigned long request, ...) {
|
| + va_list ap;
|
| + va_start(ap, request);
|
| + char* arg = va_arg(ap, char*);
|
| + va_end(ap);
|
| + return ki_ioctl(fd, request, arg);
|
| }
|
|
|