From 47ee9a48a842126af628d41450fd38a70e5408cc Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Mon, 30 Jun 2014 12:43:28 +0400 Subject: [PATCH] Revert "src: fix _XOPEN_SOURCE redefinition warning" This reverts commit 885142a5edc2c803fa8b9d92b5d0771379237764. Signed-off-by: Trevor Norris --- src/node_constants.cc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/node_constants.cc b/src/node_constants.cc index adb6f28181..d364fb2df4 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -19,21 +19,11 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -// O_NONBLOCK is not exported unless _XOPEN_SOURCE >= 500. -#if defined(_XOPEN_SOURCE) && _XOPEN_SOURCE < 500 -#undef _XOPEN_SOURCE -#endif - -#if !defined(_XOPEN_SOURCE) -#define _XOPEN_SOURCE 500 -#endif - #include "node_constants.h" #include "uv.h" #include -#include #if !defined(_MSC_VER) #include #endif @@ -41,6 +31,10 @@ #include #include +// O_NONBLOCK is not exported, unless _XOPEN_SOURCE is set +#define _XOPEN_SOURCE 500 +#include + #if HAVE_OPENSSL # include #endif