3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-13 04:28:18 +00:00

Merge pull request #4428 from kallisti5/haikuisms

haiku: Basic fixes to build under Haiku
This commit is contained in:
Emil J 2024-07-15 13:32:24 +02:00 committed by GitHub
commit 9abdf363a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -143,6 +143,11 @@ LIBS += -lrt
endif endif
endif endif
ifeq ($(OS), Haiku)
# Allow usage of non-posix vasprintf, mkstemps functions
CXXFLAGS += -D_DEFAULT_SOURCE
endif
YOSYS_VER := 0.43+3 YOSYS_VER := 0.43+3
# Note: We arrange for .gitcommit to contain the (short) commit hash in # Note: We arrange for .gitcommit to contain the (short) commit hash in

View file

@ -967,7 +967,7 @@ std::string proc_self_dirname()
{ {
return "/"; return "/";
} }
#elif defined(__OpenBSD__) #elif defined(__OpenBSD__) || defined(__HAIKU__)
char yosys_path[PATH_MAX]; char yosys_path[PATH_MAX];
char *yosys_argv0; char *yosys_argv0;