Diego Casorran's fixes to allow native AmigaOS builds

This commit is contained in:
Daniel Stenberg 2004-01-13 08:35:57 +00:00
parent 1cb3cd1463
commit 36f76396ea
9 changed files with 73 additions and 7 deletions

View file

@ -1995,6 +1995,7 @@ static int parseconfig(const char *filename,
#define CURLRC DOT_CHAR "curlrc"
#ifndef AMIGA
filename = CURLRC; /* sensible default */
home = homedir(); /* portable homedir finder */
if(home) {
@ -2006,6 +2007,13 @@ static int parseconfig(const char *filename,
}
free(home); /* we've used it, now free it */
}
# else /* AmigaOS */
/* On AmigaOS all the config files are into env:
*/
filename = "ENV:" CURLRC;
#endif
}
if(strcmp(filename,"-"))
@ -3300,6 +3308,14 @@ operate(struct Configurable *config, int argc, char *argv[])
}
}
#endif
#ifdef AMIGA
/* Set the url as comment for the file. (up to 80 chars are allowed)
*/
if( strlen(url) > 78 )
url[79] = '\0';
SetComment( outs.filename, url);
#endif
if(headerfilep)
fclose(headerfilep);