Re: [Patch] docs/examples/httpput.c

2013-10-27 Thread Daniel Stenberg
On Thu, 24 Oct 2013, Gisle Vanem wrote: Okay. I've tested the following with MSVC and MingW. htttput.c now simply uses stat(): Thanks, merged and pushed! -- / daniel.haxx.se --- List admin: http://cool.haxx.se/list/listinfo/cur

Re: [Patch] docs/examples/httpput.c

2013-10-24 Thread Dan Fandrich
On Thu, Oct 24, 2013 at 03:21:16PM +0200, Gisle Vanem wrote: > Okay. I've tested the following with MSVC and MingW. htttput.c now > simply uses stat(): Looks good to me! >>> Dan --- List admin: http://cool.haxx.se/list/listinfo/curl-

Re: [Patch] docs/examples/httpput.c

2013-10-24 Thread Gisle Vanem
"Dan Fandrich" wrote: But I'm not sure is needed at all. It's needed for close(2). But the only reason that's needed is because fstat is used instead of stat(2); if you fix that, then you could remove that include altogether. Okay. I've tested the following with MSVC and MingW. htttput.c n

Re: [Patch] docs/examples/httpput.c

2013-10-22 Thread Dan Fandrich
On Tue, Oct 22, 2013 at 03:34:20PM +0200, Gisle Vanem wrote: > Patch docs/examples/httpput.c for MSVC since it's missing : > > --- Git-latest/docs/examples/httpput.c 2013-01-28 15:48:38 + > +++ docs/examples/httpput.c2013-10-09 11:54:26 + > @@ -22,7 +22,9 @@ &g

[Patch] docs/examples/httpput.c

2013-10-22 Thread Gisle Vanem
Patch docs/examples/httpput.c for MSVC since it's missing : --- Git-latest/docs/examples/httpput.c 2013-01-28 15:48:38 + +++ docs/examples/httpput.c2013-10-09 11:54:26 + @@ -22,7 +22,9 @@ #include #include #include -#include +#ifndef _MSC_VER +# include +#endif #in