Files
2022-03-11 19:51:39 +00:00

15 lines
484 B
Plaintext

Index: src/Unique.cpp
--- src/Unique.cpp.orig
+++ src/Unique.cpp
@@ -108,7 +108,9 @@ void Unique::getPathnameFromFile(const char *const pat
void Unique::getPathnameFromExe(char* pathname)
{
-#if HAVE_GETEXECNAME && HAVE_STRLCPY
+#ifdef __OpenBSD__
+ strlcpy(pathname, "${PREFIX}/bin/gsimplecal", PATH_MAX + 1);
+#elif HAVE_GETEXECNAME && HAVE_STRLCPY
// Try getexecname (Solaris).
const char* execname = getexecname();
strlcpy(pathname, execname, PATH_MAX + 1);