diff --git a/packages/react-native/ReactCommon/cxxreact/JSBigString.cpp b/packages/react-native/ReactCommon/cxxreact/JSBigString.cpp index eaa305c238e..59cfe8d41e8 100644 --- a/packages/react-native/ReactCommon/cxxreact/JSBigString.cpp +++ b/packages/react-native/ReactCommon/cxxreact/JSBigString.cpp @@ -52,7 +52,7 @@ JSBigFileString::~JSBigFileString() { if (m_data) { munmap((void*)m_data, m_size); } - close(m_fd); + folly::fileops::close(m_fd); } const char* JSBigFileString::c_str() const { @@ -88,7 +88,7 @@ int JSBigFileString::fd() const { std::unique_ptr JSBigFileString::fromPath( const std::string& sourceURL) { - int fd = ::open(sourceURL.c_str(), O_RDONLY); + int fd = folly::fileops::open(sourceURL.c_str(), O_RDONLY); if (fd == -1) { const std::string message = @@ -105,12 +105,12 @@ std::unique_ptr JSBigFileString::fromPath( const std::string message = "JSBigFileString::fromPath - fstat on bundle failed: " + sourceURL; LOG(ERROR) << message; - ::close(fd); + folly::fileops::close(fd); throw std::runtime_error(message.c_str()); } auto ptr = std::make_unique(fd, fileInfo.st_size); - CHECK(::close(fd) == 0); + CHECK(folly::fileops::close(fd) == 0); return ptr; } diff --git a/packages/react-native/gradle/libs.versions.toml b/packages/react-native/gradle/libs.versions.toml index fd993105d9d..c8180987c16 100644 --- a/packages/react-native/gradle/libs.versions.toml +++ b/packages/react-native/gradle/libs.versions.toml @@ -37,7 +37,7 @@ boost="1_83_0" doubleconversion="1.1.6" fastFloat="6.1.4" fmt="11.0.2" -folly="2024.10.14.00" +folly="2024.11.18.00" glog="0.3.5" gtest="1.12.1" diff --git a/packages/react-native/scripts/cocoapods/helpers.rb b/packages/react-native/scripts/cocoapods/helpers.rb index 35d56353881..b7b299cc893 100644 --- a/packages/react-native/scripts/cocoapods/helpers.rb +++ b/packages/react-native/scripts/cocoapods/helpers.rb @@ -47,7 +47,7 @@ module Helpers } @@folly_config = { - :version => '2024.10.14.00', + :version => '2024.11.18.00', :git => 'https://github.com/facebook/folly.git', :compiler_flags => '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -Wno-comma -Wno-shorten-64-to-32', :dep_name => 'RCT-Folly/Fabric'