summaryrefslogtreecommitdiff
path: root/archivers/libarchive/files/libarchive_fe/passphrase.c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/libarchive/files/libarchive_fe/passphrase.c')
-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