| Index: native_client_sdk/src/libraries/nacl_mounts_test/kernel_intercept_test.cc
|
| diff --git a/native_client_sdk/src/libraries/nacl_mounts_test/kernel_intercept_test.cc b/native_client_sdk/src/libraries/nacl_mounts_test/kernel_intercept_test.cc
|
| index dc0c0fc6eac6c7124ebb46ae1073901694257509..494db2fbbbe1b64a8074f7814862d15754e0091b 100644
|
| --- a/native_client_sdk/src/libraries/nacl_mounts_test/kernel_intercept_test.cc
|
| +++ b/native_client_sdk/src/libraries/nacl_mounts_test/kernel_intercept_test.cc
|
| @@ -5,7 +5,6 @@
|
|
|
| #include <fcntl.h>
|
| #include <pthread.h>
|
| -#include <unistd.h>
|
|
|
| #include <map>
|
| #include <string>
|
| @@ -14,7 +13,6 @@
|
| #include "nacl_mounts/kernel_proxy.h"
|
| #include "nacl_mounts/path.h"
|
|
|
| -#define __STDC__ 1
|
| #include "gtest/gtest.h"
|
|
|
| class KernelProxyMock : public KernelProxy {
|
| @@ -127,10 +125,12 @@ TEST(KernelIntercept, SanityChecks) {
|
| ki_chdir("foo");
|
| EXPECT_EQ("chdir", mock->LastStr());
|
|
|
| - ki_getcwd("foo", 1);
|
| + char getcwd_buffer[] = "foo";
|
| + ki_getcwd(getcwd_buffer, 1);
|
| EXPECT_EQ("getcwd", mock->LastStr());
|
|
|
| - ki_getwd("foo");
|
| + char getwd_buffer[] = "foo";
|
| + ki_getwd(getwd_buffer);
|
| EXPECT_EQ("getwd", mock->LastStr());
|
|
|
| ki_dup(1);
|
|
|