diff --git a/folly/io/async/test/AsyncUDPSocketTest.cpp b/folly/io/async/test/AsyncUDPSocketTest.cpp index f311968ffcf..6b206470700 100644 --- a/folly/io/async/test/AsyncUDPSocketTest.cpp +++ b/folly/io/async/test/AsyncUDPSocketTest.cpp @@ -378,7 +378,8 @@ class UDPNotifyClient : public UDPClient { SocketAddress addr; addr.setFromSockaddr(rawAddr, addrLen); - onDataAvailable(addr, size_t(read), false, OnDataAvailableParams()); + onDataAvailable( + addr, size_t(folly::fileops::read), false, OnDataAvailableParams()); } void onRecvMmsg(AsyncUDPSocket& sock) { diff --git a/folly/test/FileUtilTest.cpp b/folly/test/FileUtilTest.cpp index 35e8245fb08..8fc465d3787 100644 --- a/folly/test/FileUtilTest.cpp +++ b/folly/test/FileUtilTest.cpp @@ -267,7 +267,9 @@ TEST(FileUtilTest2, wrapv) { #ifndef _WIN32 EXPECT_EQ(sum, wrapvFull(writev, tempFile.fd(), iov.data(), iov.size())); #else - EXPECT_EQ(sum, wrapvFull(write, tempFile.fd(), iov.data(), iov.size())); + EXPECT_EQ( + sum, + wrapvFull(folly::fileops::write, tempFile.fd(), iov.data(), iov.size())); #endif } diff --git a/folly/test/IndexedMemPoolTest.cpp b/folly/test/IndexedMemPoolTest.cpp index b597a884d33..19bb4f9060e 100644 --- a/folly/test/IndexedMemPoolTest.cpp +++ b/folly/test/IndexedMemPoolTest.cpp @@ -79,7 +79,7 @@ TEST(IndexedMemPool, noStarvation) { EXPECT_LE( idx, poolSize + (pool.NumLocalLists - 1) * pool.LocalListLimit); pool[idx] = i; - EXPECT_EQ(write(fd[1], &idx, sizeof(idx)), sizeof(idx)); + EXPECT_EQ(fileops::write(fd[1], &idx, sizeof(idx)), sizeof(idx)); Sched::post(&readSem); } });