1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-26 21:22:00 +03:00

Adding support for DragonFlyBSD.

This commit is contained in:
sinetek 2015-11-03 01:14:34 +07:00
parent 398e9a747a
commit 4b8c03afe6
2 changed files with 9 additions and 0 deletions

View File

@ -30,6 +30,10 @@ ifeq ($(os),Darwin)
LIBS += -lncurses -lboost_regex-mt
else ifeq ($(os),Haiku)
LIBS += -lncursesw -lboost_regex -lnetwork -lbe
else ifeq ($(os),DragonFly)
LIBS += -lncursesw -lboost_regex
CPPFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
else ifneq (,$(findstring CYGWIN,$(os)))
LIBS += -lncursesw -lboost_regex -ldbghelp
else

View File

@ -505,6 +505,11 @@ String get_kak_binary_path()
kak_assert(status == B_OK);
BPath path(&info.ref);
return path.Path();
#elif defined(__DragonFly__)
ssize_t res = readlink("/proc/curproc/file", buffer, 2048);
kak_assert(res != -1);
buffer[res] = '\0';
return buffer;
#else
# error "finding executable path is not implemented on this platform"
#endif