Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Revert "src: fix _XOPEN_SOURCE redefinition warning"
Browse files Browse the repository at this point in the history
This reverts commit 885142a.

Signed-off-by: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
indutny authored and trevnorris committed Jul 2, 2014
1 parent 4128d4d commit 47ee9a4
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/node_constants.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,22 @@
// 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 <errno.h>
#include <fcntl.h>
#if !defined(_MSC_VER)
#include <unistd.h>
#endif
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>

// O_NONBLOCK is not exported, unless _XOPEN_SOURCE is set
#define _XOPEN_SOURCE 500
#include <fcntl.h>

#if HAVE_OPENSSL
# include <openssl/ssl.h>
#endif
Expand Down

0 comments on commit 47ee9a4

Please sign in to comment.