summaryrefslogtreecommitdiff
path: root/archivers/libarchive
diff options
context:
space:
mode:
authorjoerg <joerg>2016-06-22 12:04:03 +0000
committerjoerg <joerg>2016-06-22 12:04:03 +0000
commit0182ffb19923e6a436dbae801f65afcf943052f4 (patch)
tree842e66f0e91a78759c3ad6f2d993001afd79f42c /archivers/libarchive
parentb6d946ffd92ea5e536af7249a0b27cafbf5a30e9 (diff)
downloadpkgsrc-0182ffb19923e6a436dbae801f65afcf943052f4.tar.gz
Provide _PATH_TTY if it is missing.
Diffstat (limited to 'archivers/libarchive')
-rw-r--r--archivers/libarchive/files/libarchive_fe/passphrase.c4
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