silence archive warning for .a files
This commit is contained in:
parent
c4553e9cd0
commit
3842363abc
1 changed files with 2 additions and 1 deletions
|
|
@ -216,7 +216,8 @@ type(char *file)
|
||||||
fd = open(file, OREAD);
|
fd = open(file, OREAD);
|
||||||
if(fd < 0){
|
if(fd < 0){
|
||||||
if(symlook(file, S_BITCH, 0) == 0){
|
if(symlook(file, S_BITCH, 0) == 0){
|
||||||
Bprint(&bout, "%s doesn't exist: assuming it will be an archive\n", file);
|
if(strlen(file) < 2 || strcmp(file+strlen(file)-2, ".a") != 0)
|
||||||
|
Bprint(&bout, "%s doesn't exist: assuming it will be an archive\n", file);
|
||||||
symlook(file, S_BITCH, (void *)file);
|
symlook(file, S_BITCH, (void *)file);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue