1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

tool_operate: build on AmigaOS

This commit is contained in:
Chris Young 2019-03-10 16:13:40 +00:00 committed by Daniel Stenberg
parent 5cf5d57ab9
commit 5c215bdbdf
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -33,6 +33,10 @@
# include <fabdef.h>
#endif
#ifdef __AMIGA__
# include <proto/dos.h>
#endif
#include "strcase.h"
#define ENABLE_CURLX_PRINTF
@ -1866,9 +1870,9 @@ static CURLcode operate_do(struct GlobalConfig *global,
#ifdef __AMIGA__
if(!result && outs.s_isreg && outs.filename) {
/* Set the url (up to 80 chars) as comment for the file */
if(strlen(url) > 78)
url[79] = '\0';
SetComment(outs.filename, url);
if(strlen(urlnode->url) > 78)
urlnode->url[79] = '\0';
SetComment(outs.filename, urlnode->url);
}
#endif