Skip to content

Commit 0beedae

Browse files
authored
Merge pull request #391 from aalmkainzi/fix-lib-includes
fixed error where amalgamator wouldnt include some system headers, causing building lib.c to fail on linux
2 parents 9ed3516 + 6846ab5 commit 0beedae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/amalgamator.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ void mark_as_included(const char* filename0, struct strlist_node** s_included)
6565
bool strlist_has(const char* filename0, struct strlist_node** s_included)
6666
{
6767
char filename[200];
68-
realpath(filename0, filename);
68+
if(realpath(filename0, filename) == NULL)
69+
{
70+
return false;
71+
}
6972

7073
bool result = false;
7174
struct strlist_node* pCurrent = *s_included;

0 commit comments

Comments
 (0)