mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 03:50:11 +08:00
JSBigString: Explicitly include unistd.h (#22330)
Summary: `JSBigString` is using functions from `unistd.h`, like `getpagesize`, `dup`, `open`, etc. but was not directly including it. It was being included from inside the glog `logging.h` header, which in turn was getting included by the Folly headers `JSBigString` was using. This was discovered while building CxxReact with a custom shimmed Glog. Pull Request resolved: https://github.com/facebook/react-native/pull/22330 Differential Revision: D13115346 Pulled By: shergin fbshipit-source-id: 9fe4e3b28f74c0ca351ac6308484e375eace4db4
This commit is contained in:
committed by
Facebook Github Bot
parent
c293f29f57
commit
d6d31a4b66
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <sys/mman.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <folly/Exception.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user