Implement pa_get_binary_name().

Index: src/pulse/util.c
--- src/pulse/util.c.orig
+++ src/pulse/util.c
@@ -52,6 +52,10 @@
 #include <sys/sysctl.h>
 #endif
 
+#ifdef __OpenBSD__
+#include <limits.h>
+#endif
+
 #include <pulse/xmalloc.h>
 #include <pulse/timeval.h>
 
@@ -253,6 +257,19 @@ char *pa_get_binary_name(char *s, size_t l) {
         }
     }
 #endif
+
+#ifdef __OpenBSD__
+    {
+        char path[PATH_MAX];
+
+        if (getexecpath(path, sizeof(path)) == 0) {
+            pa_strlcpy(s, pa_path_get_filename(path), l);
+            return s;
+        }
+
+        /* fall thru */
+    }
+#endif /* __OpenBSD__ */
 
 #if defined(HAVE_DLADDR) && defined(PA_GCC_WEAKREF)
     {
