diff --git a/src/Makefile b/src/Makefile index 47a5541b..6158962b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -53,6 +53,10 @@ else ifeq ($(os),FreeBSD) LDFLAGS += -L/usr/local/lib else ifeq ($(os),Haiku) LIBS += -lncursesw -lnetwork -lbe +else ifeq ($(os),OpenBSD) + LIBS += -lncursesw + CPPFLAGS += -I/usr/local/include + LDFLAGS += -L/usr/local/lib else ifneq (,$(findstring CYGWIN,$(os))) CPPFLAGS += -D_XOPEN_SOURCE=700 LIBS += -lncursesw -ldbghelp diff --git a/src/file.cc b/src/file.cc index 00d7b627..638ad014 100644 --- a/src/file.cc +++ b/src/file.cc @@ -23,6 +23,9 @@ #if defined(__FreeBSD__) #include #endif +#if defined(__OpenBSD__) +#include +#endif #if defined(__APPLE__) #include @@ -572,6 +575,8 @@ String get_kak_binary_path() kak_assert(res != -1); buffer[res] = '\0'; return buffer; +#elif defined(__OpenBSD__) + return "/usr/local/bin/"; #else # error "finding executable path is not implemented on this platform" #endif