aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-07-05 15:34:48 +0200
committerSverker Eriksson <[email protected]>2016-07-05 15:49:45 +0200
commite77c49f0e80740531405a49494fe5431326a0ba7 (patch)
treeddb3ca40cdd75269ebf8187774adb766c7c6b83a /erts
parent0573efbc18fc20f8646cf3ff64d2affd06e03cb8 (diff)
downloadotp-e77c49f0e80740531405a49494fe5431326a0ba7.tar.gz
otp-e77c49f0e80740531405a49494fe5431326a0ba7.tar.bz2
otp-e77c49f0e80740531405a49494fe5431326a0ba7.zip
run_erl: Beautify #ifdef jungle
Diffstat (limited to 'erts')
-rw-r--r--erts/etc/unix/run_erl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/etc/unix/run_erl.c b/erts/etc/unix/run_erl.c
index 30210ac172..d7cfbe675e 100644
--- a/erts/etc/unix/run_erl.c
+++ b/erts/etc/unix/run_erl.c
@@ -912,12 +912,12 @@ static int open_pty_master(char **ptyslave, int *sfdp)
slave device properly. */
#if defined(HAVE_WORKING_POSIX_OPENPT) || (defined(__sun) && defined(__SVR4))
# ifdef HAVE_WORKING_POSIX_OPENPT
- if ((mfd = posix_openpt(O_RDWR)) >= 0) {
+ mfd = posix_openpt(O_RDWR);
# elif defined(__sun) && defined(__SVR4)
mfd = sf_open("/dev/ptmx", O_RDWR, 0);
+# endif
if (mfd >= 0) {
-# endif
if ((*ptyslave = ptsname(mfd)) != NULL &&
grantpt(mfd) == 0 &&
unlockpt(mfd) == 0) {