diff options
author | joerg <joerg> | 2016-06-22 12:04:03 +0000 |
---|---|---|
committer | joerg <joerg> | 2016-06-22 12:04:03 +0000 |
commit | 0182ffb19923e6a436dbae801f65afcf943052f4 (patch) | |
tree | 842e66f0e91a78759c3ad6f2d993001afd79f42c /archivers/libarchive | |
parent | b6d946ffd92ea5e536af7249a0b27cafbf5a30e9 (diff) | |
download | pkgsrc-0182ffb19923e6a436dbae801f65afcf943052f4.tar.gz |
Provide _PATH_TTY if it is missing.
Diffstat (limited to 'archivers/libarchive')
-rw-r--r-- | archivers/libarchive/files/libarchive_fe/passphrase.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archivers/libarchive/files/libarchive_fe/passphrase.c b/archivers/libarchive/files/libarchive_fe/passphrase.c index ec84591cdfa..8e67bb33b35 100644 --- a/archivers/libarchive/files/libarchive_fe/passphrase.c +++ b/archivers/libarchive/files/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 |