Browse Source

Revert "src: fix _XOPEN_SOURCE redefinition warning"

This reverts commit 885142a5ed.

Signed-off-by: Trevor Norris <trev.norris@gmail.com>
v0.10.30-release
Fedor Indutny 11 years ago
committed by Trevor Norris
parent
commit
47ee9a48a8
  1. 14
      src/node_constants.cc

14
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 <errno.h>
#include <fcntl.h>
#if !defined(_MSC_VER)
#include <unistd.h>
#endif
@ -41,6 +31,10 @@
#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

Loading…
Cancel
Save