diff options
author | Lukas Larsson <[email protected]> | 2016-09-27 11:05:44 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-09-27 11:05:44 +0200 |
commit | d85475bf9461d854c12589f78201fd77bea11a17 (patch) | |
tree | 759748cdf3f0bcccf2cd43f99774ff80649fbadd /erts/emulator/sys/unix | |
parent | 3f3f25b23379b1afb15cc97462cf5d385690f5a0 (diff) | |
download | otp-d85475bf9461d854c12589f78201fd77bea11a17.tar.gz otp-d85475bf9461d854c12589f78201fd77bea11a17.tar.bz2 otp-d85475bf9461d854c12589f78201fd77bea11a17.zip |
erts: Rename __errno in order to avoid conflict on openbsd
Diffstat (limited to 'erts/emulator/sys/unix')
-rw-r--r-- | erts/emulator/sys/unix/sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/sys/unix/sys.c b/erts/emulator/sys/unix/sys.c index 089efec3e8..b0e623a5b9 100644 --- a/erts/emulator/sys/unix/sys.c +++ b/erts/emulator/sys/unix/sys.c @@ -715,13 +715,13 @@ static RETSIGTYPE suspend_signal(void) static RETSIGTYPE suspend_signal(int signum) #endif { - int res, buf[1], __errno = errno; + int res, buf[1], tmp_errno = errno; do { res = read(sig_suspend_fds[0], buf, sizeof(int)); } while (res < 0 && errno == EINTR); /* restore previous errno in case read changed it */ - errno = __errno; + errno = tmp_errno; } #endif /* #ifdef ERTS_SYS_SUSPEND_SIGNAL */ |