pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/libarchive/files/libarchive_fe Provide _PATH...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0e4f46d512e6
branches:  trunk
changeset: 349001:0e4f46d512e6
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jun 22 12:04:03 2016 +0000

description:
Provide _PATH_TTY if it is missing.

diffstat:

 archivers/libarchive/files/libarchive_fe/passphrase.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r adb71a9419b4 -r 0e4f46d512e6 archivers/libarchive/files/libarchive_fe/passphrase.c
--- a/archivers/libarchive/files/libarchive_fe/passphrase.c     Wed Jun 22 11:40:16 2016 +0000
+++ b/archivers/libarchive/files/libarchive_fe/passphrase.c     Wed Jun 22 12:04:03 2016 +0000
@@ -132,6 +132,10 @@
 #include <termios.h>
 #include <unistd.h>
 
+#ifndef _PATH_TTY
+#define _PATH_TTY "/dev/tty"
+#endif
+
 #ifdef TCSASOFT
 # define _T_FLUSH      (TCSAFLUSH|TCSASOFT)
 #else



Home | Main Index | Thread Index | Old Index