cURL / Mailing Lists / curl-library / Single Mail

curl-library

[patch] ftpupload.c compile fix

From: Michal Marek <mmarek_at_suse.cz>
Date: Thu, 21 Feb 2008 15:34:35 +0100

Hi,

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’

Fix attached.

Michal

Received on 2008-02-21