]> granicus.if.org Git - curl/commitdiff
getpass: protect include with proper #ifdef
authorDaniel Stenberg <daniel@haxx.se>
Tue, 3 Feb 2015 06:57:54 +0000 (07:57 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 3 Feb 2015 06:57:54 +0000 (07:57 +0100)
Reported-by: Tamir
src/tool_getpass.c

index 34e0e6f5b5eda864d4a2747a6c188908b4fd2979..4036d7ed3ae373bd36a6c3034a4614331c68e63c 100644 (file)
@@ -52,7 +52,9 @@
 #  endif
 #endif
 
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #define _MPRINTF_REPLACE
 #include <curl/mprintf.h>