From d0329460b800a18c53c824115bd4ac3d71e3ad73 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Apr 2020 22:04:34 +0530 Subject: [PATCH] Fix #2573 --- launcher.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/launcher.c b/launcher.c index 253bcc739..44b07c464 100644 --- a/launcher.c +++ b/launcher.c @@ -31,6 +31,7 @@ #define KITTY_LIB_DIR_NAME "lib" #endif +#ifndef __FreeBSD__ static inline bool safe_realpath(const char* src, char *buf, size_t buf_sz) { char* ans = realpath(src, NULL); @@ -39,6 +40,7 @@ safe_realpath(const char* src, char *buf, size_t buf_sz) { free(ans); return true; } +#endif static inline void set_bundle_exe_dir(const wchar_t *exe_dir) {