From 7f489b63f201f65158d58ad5fe33f460938d0c74 Mon Sep 17 00:00:00 2001 From: "REDMOND\\acoates" Date: Mon, 3 Jun 2019 08:41:57 -0700 Subject: [PATCH] Move unistd.h include to cpp where its used (#25107) Summary: unistd.h isn't a header available in the windows SDK, so we can't include it from react-native-windows. I moved the usage of dup, to JSBigString.cpp in a previous PR, so this header should only be needed in the cpp file, not the header. (And react-native-windows doesn't use the cpp file) ## Changelog [Internal] [Fixed] - Header cleanup Pull Request resolved: https://github.com/facebook/react-native/pull/25107 Differential Revision: D15602265 Pulled By: cpojer fbshipit-source-id: 6a62bf8fe6758e400810f37834e8646485120d71 --- ReactCommon/cxxreact/JSBigString.cpp | 1 + ReactCommon/cxxreact/JSBigString.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/cxxreact/JSBigString.cpp b/ReactCommon/cxxreact/JSBigString.cpp index dc997d1cd5..d841295e32 100644 --- a/ReactCommon/cxxreact/JSBigString.cpp +++ b/ReactCommon/cxxreact/JSBigString.cpp @@ -7,6 +7,7 @@ #include #include +#include #include diff --git a/ReactCommon/cxxreact/JSBigString.h b/ReactCommon/cxxreact/JSBigString.h index c4bf86fd71..3d07f1fda4 100644 --- a/ReactCommon/cxxreact/JSBigString.h +++ b/ReactCommon/cxxreact/JSBigString.h @@ -6,7 +6,6 @@ #pragma once #include -#include #include #include