From e77c49f0e80740531405a49494fe5431326a0ba7 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Tue, 5 Jul 2016 15:34:48 +0200 Subject: run_erl: Beautify #ifdef jungle --- erts/etc/unix/run_erl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'erts') 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) { -- cgit v1.2.3