cURL / Mailing Lists / curl-library / Single Mail

curl-library

[Patch] docs/examples/httpput.c

From: Gisle Vanem <gvanem_at_yahoo.no>
Date: Tue, 22 Oct 2013 15:34:20 +0200

Patch docs/examples/httpput.c for MSVC since it's missing <unistd.h>:

--- Git-latest/docs/examples/httpput.c 2013-01-28 15:48:38 +0000
+++ docs/examples/httpput.c 2013-10-09 11:54:26 +0000
@@ -22,7 +22,9 @@
 #include <stdio.h>
 #include <fcntl.h>
 #include <sys/stat.h>
-#include <unistd.h>
+#ifndef _MSC_VER
+# include <unistd.h>
+#endif

 #include <curl/curl.h>

----------------

But I'm not sure <unistd.h> is needed at all.

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-10-22