diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2018-11-20 19:01:17 +0000 | 
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2018-11-20 19:01:17 +0000 | 
| commit | f12dd99bc33eefb702280bdaed6156a57d867be1 (patch) | |
| tree | 3ced903ff59efa46be0b01f4cae665cd9c974b15 /crypto/ui/ui_openssl.c | |
| parent | 43a67e02da9068b94df1c07fc6f0d70bafd9263b (diff) | |
Diffstat (limited to 'crypto/ui/ui_openssl.c')
| -rw-r--r-- | crypto/ui/ui_openssl.c | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c index 1ad0cfc5b873..4b4eb81a5e66 100644 --- a/crypto/ui/ui_openssl.c +++ b/crypto/ui/ui_openssl.c @@ -509,6 +509,24 @@ static int open_console(UI *ui)              is_a_tty = 0;          else  # endif +# ifdef ENXIO +            /* +             * Solaris can return ENXIO. +             * This should be ok +             */ +        if (errno == ENXIO) +            is_a_tty = 0; +        else +# endif +# ifdef EIO +            /* +             * Linux can return EIO. +             * This should be ok +             */ +        if (errno == EIO) +            is_a_tty = 0; +        else +# endif  # ifdef ENODEV              /*               * MacOS X returns ENODEV (Operation not supported by device), | 
