diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2016-06-22 15:00:34 +0200 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2016-06-22 15:00:34 +0200 |
commit | ac10fafa54743ee8f17a61892158bfd67f877e99 (patch) | |
tree | 578eff29423fc49aca711c9d43053f08323fea20 /libarchive_fe | |
parent | 3e66829717c8fde611b2b611497f08a46da40ce7 (diff) | |
download | libarchive-ac10fafa54743ee8f17a61892158bfd67f877e99.tar.gz |
Older Solaris at least has no _PATH_TTY, so provide a fallback.
Diffstat (limited to 'libarchive_fe')
-rw-r--r-- | libarchive_fe/passphrase.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libarchive_fe/passphrase.c b/libarchive_fe/passphrase.c index 33224375..8c38ad77 100644 --- a/libarchive_fe/passphrase.c +++ b/libarchive_fe/passphrase.c @@ -132,6 +132,10 @@ readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags) #include <termios.h> #include <unistd.h> +#ifndef _PATH_TTY +#define _PATH_TTY "/dev/tty" +#endif + #ifdef TCSASOFT # define _T_FLUSH (TCSAFLUSH|TCSASOFT) #else |