diff options
Diffstat (limited to 'test/sanitizer_common/TestCases/Posix/getpass.cc')
-rw-r--r-- | test/sanitizer_common/TestCases/Posix/getpass.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/sanitizer_common/TestCases/Posix/getpass.cc b/test/sanitizer_common/TestCases/Posix/getpass.cc index b91a3d7d5..bf198eff9 100644 --- a/test/sanitizer_common/TestCases/Posix/getpass.cc +++ b/test/sanitizer_common/TestCases/Posix/getpass.cc @@ -5,13 +5,19 @@ #include <assert.h> #include <stdio.h> -#include <unistd.h> #include <string.h> #if __linux__ #include <pty.h> +#elif defined(__FreeBSD__) +#include <libutil.h> +#include <pwd.h> +#include <sys/ioctl.h> +#include <sys/termios.h> +#include <sys/types.h> #else #include <util.h> #endif +#include <unistd.h> int main (int argc, char** argv) |