]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Older Solaris at least has no _PATH_TTY, so provide a fallback.
authorJoerg Sonnenberger <joerg@bec.de>
Wed, 22 Jun 2016 13:00:34 +0000 (15:00 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Wed, 22 Jun 2016 13:00:34 +0000 (15:00 +0200)
libarchive_fe/passphrase.c

index 3322437588ebbedbc23150ccd535bb24c0ed3821..8c38ad77782828ea93c3ae9ff7e07dee90966750 100644 (file)
@@ -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