Fix #2573
This commit is contained in:
parent
717c0c96de
commit
d0329460b8
@ -31,6 +31,7 @@
|
|||||||
#define KITTY_LIB_DIR_NAME "lib"
|
#define KITTY_LIB_DIR_NAME "lib"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __FreeBSD__
|
||||||
static inline bool
|
static inline bool
|
||||||
safe_realpath(const char* src, char *buf, size_t buf_sz) {
|
safe_realpath(const char* src, char *buf, size_t buf_sz) {
|
||||||
char* ans = realpath(src, NULL);
|
char* ans = realpath(src, NULL);
|
||||||
@ -39,6 +40,7 @@ safe_realpath(const char* src, char *buf, size_t buf_sz) {
|
|||||||
free(ans);
|
free(ans);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
set_bundle_exe_dir(const wchar_t *exe_dir) {
|
set_bundle_exe_dir(const wchar_t *exe_dir) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user