mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:03:36 +03:00
Diego Casorran's fixes to allow native AmigaOS builds
This commit is contained in:
parent
1cb3cd1463
commit
36f76396ea
9 changed files with 73 additions and 7 deletions
16
src/main.c
16
src/main.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue