$NetBSD: patch-ab,v 1.4 2022/12/19 23:18:37 gdt Exp $

--- getpass.c.orig	2013-05-15 16:50:30.000000000 +0000
+++ getpass.c
@@ -44,6 +44,7 @@
 #include "getpass.h"
 #include "shs.h"
 
+#ifndef HAVE_GETPASS
 /* hacks to use POSIX style termios instead of old BSD style sgttyb */
 /* Should be simply replaced with POSIX functions when possible     */
 #include <termios.h>
@@ -92,6 +93,7 @@ getpassword(char *prompt)
 		fclose(fi);
 	return (pbuf[0] == '\0' ? NULL : pbuf);
 }
+#endif
 
 int
 old_pwcrunch(char *b, cfs_admkey *k)
