Skip to content

Commit e753770

Browse files
mixicharles-lunarg
authored andcommitted
loader: Include limits.h for PATH_MAX
This fixes compiling against musl libc: loader/loader.c: In function 'normalize_pat': loader/loader.c:405:52: error: 'PATH_MAX' undeclared (first use in this function) 405 | char *path = loader_instance_heap_calloc(inst, PATH_MAX, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE); | ^~~~~~~~
1 parent 5e056ff commit e753770

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

loader/loader.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
#include <errno.h>
3434
#include <inttypes.h>
35+
#include <limits.h>
3536
#include <stdio.h>
3637
#include <stdlib.h>
3738
#include <stdarg.h>

0 commit comments

Comments
 (0)