aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_getpass.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tool_getpass.c b/src/tool_getpass.c
index 34e0e6f5b..4036d7ed3 100644
--- a/src/tool_getpass.c
+++ b/src/tool_getpass.c
@@ -52,7 +52,9 @@
# endif
#endif
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#define _MPRINTF_REPLACE
#include <curl/mprintf.h>