util.c: add missing header, fixes macOS build

This commit is contained in:
Sergey Fedorov
2025-08-02 09:17:23 +08:00
parent 7a85414ece
commit 372e76d580
+1
View File
@@ -10,6 +10,7 @@
// to free an allocated buffer on the caller.nn
#include <stdlib.h>
#include <mach-o/dyld.h>
static void util_get_executable_path(char* buffer_out, uint32_t max_size) {
assert(max_size >= PATH_MAX); // n.b. 1024 on MacOS. 4K on most Linux.