curl-users
Re: curl fails to compile with native solaris cc
Date: Mon, 5 Nov 2001 13:23:48 +0100 (MET)
On Mon, 5 Nov 2001, Detlef Schmier - Sun Microsystems GmbH wrote:
(I cc my reply to the curl mailing list for information.)
> Then I try to compile curl on Solaris I get the following error message:
>
> "ftp.c", line 1920: identifier redeclared: Curl_ftpsendf
[huge chunk of error description cut off]
Oops. I hope this patch makes your compiler happier:
--- lib/ftp.h 2001/09/28 09:15:19 1.9
+++ lib/ftp.h 2001/11/05 12:22:59
@@ -28,7 +28,7 @@
CURLcode Curl_ftp_connect(struct connectdata *conn);
CURLcode Curl_ftp_disconnect(struct connectdata *conn);
-size_t Curl_ftpsendf(struct connectdata *, const char *fmt, ...);
+CURLcode Curl_ftpsendf(struct connectdata *, const char *fmt, ...);
/* The kerberos stuff needs this: */
int Curl_GetFTPResponse(char *buf, struct connectdata *conn,
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2001-11-05