summaryrefslogtreecommitdiff
path: root/libc/unistd/getpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/getpass.c')
-rw-r--r--libc/unistd/getpass.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/unistd/getpass.c b/libc/unistd/getpass.c
index 5833bc317..fbf82d1c4 100644
--- a/libc/unistd/getpass.c
+++ b/libc/unistd/getpass.c
@@ -22,6 +22,8 @@
#include <unistd.h>
#include <string.h>
+#if defined __USE_BSD && (defined __USE_XOPEN && !defined __USE_XOPEN2K)
+
libc_hidden_proto(strlen)
libc_hidden_proto(tcsetattr)
libc_hidden_proto(tcgetattr)
@@ -118,3 +120,4 @@ getpass (prompt)
return buf;
}
+#endif