From f77a24966e75271a30ee5a4eefdb90edc2eacb9e Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Fri, 21 May 2021 20:17:34 -0700 Subject: Make many tests build with NDK. Not all the tests build yet, but many of them do now. PiperOrigin-RevId: 375209824 --- test/syscalls/linux/lseek.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/syscalls/linux/lseek.cc') diff --git a/test/syscalls/linux/lseek.cc b/test/syscalls/linux/lseek.cc index 6ce1e6cc3..d4f89527c 100644 --- a/test/syscalls/linux/lseek.cc +++ b/test/syscalls/linux/lseek.cc @@ -150,7 +150,7 @@ TEST(LseekTest, SeekCurrentDir) { // From include/linux/fs.h. constexpr loff_t MAX_LFS_FILESIZE = 0x7fffffffffffffff; - char* dir = get_current_dir_name(); + char* dir = getcwd(NULL, 0); const FileDescriptor fd = ASSERT_NO_ERRNO_AND_VALUE(Open(dir, O_RDONLY)); ASSERT_THAT(lseek(fd.get(), 0, SEEK_CUR), SyscallSucceeds()); -- cgit v1.2.3