aboutsummaryrefslogtreecommitdiff
path: root/src/tool_getpass.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-02-03 07:57:54 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-02-03 07:57:54 +0100
commitf91a7bc992007e6407c1f997a64f1a5b80d5b7ff (patch)
tree7a5e4235774dc5907792370655028cb35821f94b /src/tool_getpass.c
parent859a82a85cc0a1ea6dff496b3542beda0b06f933 (diff)
getpass: protect include with proper #ifdef
Reported-by: Tamir
Diffstat (limited to 'src/tool_getpass.c')
-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>