Skip to content

Commit 47ee9a4

Browse files
indutnytrevnorris
authored andcommitted
Revert "src: fix _XOPEN_SOURCE redefinition warning"
This reverts commit 885142a. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
1 parent 4128d4d commit 47ee9a4

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

src/node_constants.cc

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,22 @@
1919
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

22-
// O_NONBLOCK is not exported unless _XOPEN_SOURCE >= 500.
23-
#if defined(_XOPEN_SOURCE) && _XOPEN_SOURCE < 500
24-
#undef _XOPEN_SOURCE
25-
#endif
26-
27-
#if !defined(_XOPEN_SOURCE)
28-
#define _XOPEN_SOURCE 500
29-
#endif
30-
3122
#include "node_constants.h"
3223

3324
#include "uv.h"
3425

3526
#include <errno.h>
36-
#include <fcntl.h>
3727
#if !defined(_MSC_VER)
3828
#include <unistd.h>
3929
#endif
4030
#include <signal.h>
4131
#include <sys/types.h>
4232
#include <sys/stat.h>
4333

34+
// O_NONBLOCK is not exported, unless _XOPEN_SOURCE is set
35+
#define _XOPEN_SOURCE 500
36+
#include <fcntl.h>
37+
4438
#if HAVE_OPENSSL
4539
# include <openssl/ssl.h>
4640
#endif

0 commit comments

Comments
 (0)