cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftpupload.c example

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Mon, 18 Feb 2008 05:16:16 -0600

On Feb 18, 2008 4:51 AM, Static Pulse <static.pu7s3_at_yahoo.com> wrote:

> When I tried comenting out #include <unistd.h> it gives me back an error:
> E:\curlcpp\libcurl-msvc\docs\examples\ftpupload.c(44) : warning C4013:
> 'open' undefined; assuming extern returning int
> E:\curlcpp\libcurl-msvc\docs\examples\ftpupload.c(46) : warning C4013:
> 'close' undefined; assuming extern returning int

I'm not on Windows right now, but maybe if you
add these two lines it will work:

#define open _open
#define close _close

 - Jeff
Received on 2008-02-18