curl-library
Re: [patch] ftpupload.c compile fix
From: Guenter Knauf <eflash_at_gmx.net>
Date: Thu, 21 Feb 2008 16:05:02 +0100
Date: Thu, 21 Feb 2008 16:05:02 +0100
Hi Michal,
> on my machine (glibc 2.7 if that matters), docs/examples/ftpupload.c
> doesn't compile:
> ftpupload.c: In function ‘main’:
> ftpupload.c:63: error: ‘errno’ undeclared (first use in this function)
> ftpupload.c:63: error: (Each undeclared identifier is reported only once
> ftpupload.c:63: error: for each function it appears in.)
> ftpupload.c:64: warning: incompatible implicit declaration of built-in
> function ‘exit’
sorry, my bad!
Just committed fix - but I added only errno.h since I changed
from exit() to return() which is anyway more correct I think.
Guenter.
Received on 2008-02-21