summaryrefslogtreecommitdiff
path: root/archivers/libarchive
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2016-06-22 12:04:03 +0000
committerjoerg <joerg@pkgsrc.org>2016-06-22 12:04:03 +0000
commitc59568aff8a01d83f8bb7f3b68fc3bb61ae09015 (patch)
tree119c3c8b143496d51b09313e4c2a7d3ea89185fe /archivers/libarchive
parent392e786c53cf810c52674cc631711cf9fe658bc6 (diff)
downloadpkgsrc-c59568aff8a01d83f8bb7f3b68fc3bb61ae09015.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