mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
15 lines
484 B
Plaintext
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);
|