--- /dev/null
+From 418ee5087a23210a0bdd816746c98fc3ffc4709f Mon Sep 17 00:00:00 2001
+From: Marco Eichelberg <eichelberg@offis.de>
+Date: Fri, 30 Jan 2026 18:21:33 +0100
+Subject: [PATCH] Added support for GNU Hurd in OFgetExecutablePath().
+
+Thanks to Pino Toscano (GitHub user pinotree) for the pull request.
+
+This closes GitHub PR #137.
+---
+ ofstd/libsrc/ofwhere.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/ofstd/libsrc/ofwhere.c b/ofstd/libsrc/ofwhere.c
+index 3b6bec18e..3e8b3e591 100644
+--- a/ofstd/libsrc/ofwhere.c
++++ b/ofstd/libsrc/ofwhere.c
+@@ -165,7 +165,7 @@ int OFgetExecutablePath(char* out, int capacity, int* dirname_length)
+ return OFgetModulePath_(NULL, out, capacity, dirname_length);
+ }
+
+-#elif defined(__linux__) || defined(__CYGWIN__) || defined(__sun) || defined(WAI_USE_PROC_SELF_EXE)
++#elif defined(__linux__) || defined(__CYGWIN__) || defined(__sun) || defined(__GNU__) || defined(WAI_USE_PROC_SELF_EXE)
+
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -185,6 +185,10 @@ int OFgetExecutablePath(char* out, int capacity, int* dirname_length)
+ #endif
+ #endif
+
++#if !defined(PATH_MAX)
++#define PATH_MAX 1024
++#endif
++
+
+ int OFgetExecutablePath(char* out, int capacity, int* dirname_length)
+ {
+--
+2.51.0
+