diff options
author | joerg <joerg@pkgsrc.org> | 2016-06-22 12:04:03 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2016-06-22 12:04:03 +0000 |
commit | c59568aff8a01d83f8bb7f3b68fc3bb61ae09015 (patch) | |
tree | 119c3c8b143496d51b09313e4c2a7d3ea89185fe /archivers/libarchive | |
parent | 392e786c53cf810c52674cc631711cf9fe658bc6 (diff) | |
download | pkgsrc-c59568aff8a01d83f8bb7f3b68fc3bb61ae09015.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 |