gowin: Himbaechel. Support DragonFlyBSD

We add support right here so that later I don’t have to make patches to the ports.

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
YRabbit 2023-09-16 11:43:13 +10:00 committed by myrtle
parent 565927dfcc
commit 165e89f49a

View File

@ -148,7 +148,7 @@ std::string proc_self_dirname()
}
#elif defined(EMSCRIPTEN) || defined(__wasm)
std::string proc_self_dirname() { return "/"; }
#elif defined(__OpenBSD__)
#elif defined(__OpenBSD__) || defined(__DragonFly__)
char npnr_path[PATH_MAX];
char *npnr_argv0;