allow aliases without library

This commit is contained in:
zimoch
2011-03-07 16:54:21 +00:00
parent 5bedc64680
commit 72976ac399
+5
View File
@@ -192,6 +192,11 @@ int require(char* lib, char* vers)
fclose(depfile);
}
if (stat(libname, &filestat) == ERROR)
{
/* no library, dep file was an alias */
return 0;
}
/* load library */
printf("Loading %s\n", libname);
fd = open(libname, O_RDONLY, 0);