* License.....: MIT
*/
-#ifdef DARWIN
+#if defined(DARWIN) || defined(__FreeBSD__)
#include <stdio.h>
#endif
char *exec_path = get_exec_path ();
- #if defined(LINUX) || defined(__APPLE__)
+
+ #if defined(LINUX) || defined(__APPLE__) || defined(__FreeBSD__)
char *resolved_install_folder = realpath (INSTALL_FOLDER, NULL);
char *resolved_exec_path = realpath (exec_path, NULL);