aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-06-24 00:37:58 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-06-24 00:37:58 +0200
commit2528bca8db70a917ffdb1801df1181eff0d0e089 (patch)
tree2887036a83732872b7a1287efc1dbce2d268725c /erts
parent1af8998028f77b4ca01c52972a5983b072ef02d1 (diff)
downloadotp-2528bca8db70a917ffdb1801df1181eff0d0e089.tar.gz
otp-2528bca8db70a917ffdb1801df1181eff0d0e089.tar.bz2
otp-2528bca8db70a917ffdb1801df1181eff0d0e089.zip
erts: Don't redefine '_XOPEN_SOURCE'
Diffstat (limited to 'erts')
-rw-r--r--erts/etc/unix/run_erl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/etc/unix/run_erl.c b/erts/etc/unix/run_erl.c
index a6fc4c2bf5..4b123b8911 100644
--- a/erts/etc/unix/run_erl.c
+++ b/erts/etc/unix/run_erl.c
@@ -40,9 +40,13 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
+
#ifdef HAVE_WORKING_POSIX_OPENPT
+#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600
#endif
+#endif
+
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>