]> git.armaanb.net Git - opendoas.git/blobdiff - libopenbsd/readpassphrase.c
libopenbsd: clean up readpassphrase compat and fix ifdefs
[opendoas.git] / libopenbsd / readpassphrase.c
index a283969f38bcbdd1e6b43c37b51556bb714fa648..87675aa4374a29e5176b82469ba9096f7d0079ef 100644 (file)
 #include <signal.h>
 #include <ctype.h>
 #include <fcntl.h>
-#include <readpassphrase.h>
 #include <errno.h>
 #include <string.h>
 #include <unistd.h>
+#include <paths.h>
+
+#include "sys-readpassphrase.h"
+
+#ifndef _PATH_TTY
+#define _PATH_TTY "/dev/tty"
+#endif
 
 #ifndef TCSASOFT
 /* If we don't have TCSASOFT define it so that ORing it it below is a no-op. */