summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cc (renamed from compiler-rt/test/sanitizer_common/TestCases/Linux/getpass.cc)4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/getpass.cc b/compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cc
index 902c9cb5655..251f9119d68 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/getpass.cc
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cc
@@ -4,7 +4,11 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
+#if __linux__
#include <pty.h>
+#else
+#include <util.h>
+#endif
int
main (int argc, char** argv)
OpenPOWER on IntegriCloud