Adding support for DragonFlyBSD.
This commit is contained in:
parent
398e9a747a
commit
4b8c03afe6
|
@ -30,6 +30,10 @@ ifeq ($(os),Darwin)
|
||||||
LIBS += -lncurses -lboost_regex-mt
|
LIBS += -lncurses -lboost_regex-mt
|
||||||
else ifeq ($(os),Haiku)
|
else ifeq ($(os),Haiku)
|
||||||
LIBS += -lncursesw -lboost_regex -lnetwork -lbe
|
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)))
|
else ifneq (,$(findstring CYGWIN,$(os)))
|
||||||
LIBS += -lncursesw -lboost_regex -ldbghelp
|
LIBS += -lncursesw -lboost_regex -ldbghelp
|
||||||
else
|
else
|
||||||
|
|
|
@ -505,6 +505,11 @@ String get_kak_binary_path()
|
||||||
kak_assert(status == B_OK);
|
kak_assert(status == B_OK);
|
||||||
BPath path(&info.ref);
|
BPath path(&info.ref);
|
||||||
return path.Path();
|
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
|
#else
|
||||||
# error "finding executable path is not implemented on this platform"
|
# error "finding executable path is not implemented on this platform"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user