summaryrefslogtreecommitdiffstats
path: root/audio/pulseaudio/files/patch-src_pulse_util.c
blob: 2fa4de0bc5119b1df20b3214759f52ddc7fd92f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/pulse/util.c.orig   2008-01-01 17:29:31.000000000 -0500
+++ src/pulse/util.c    2008-01-01 17:29:00.000000000 -0500
@@ -184,6 +184,17 @@ char *pa_get_binary_name(char *s, size_t
     }
 
 #endif
+#ifdef __FreeBSD__
+    {
+        char *rp;
+
+   if ((rp = pa_readlink("/proc/curproc/file"))) {
+       pa_strlcpy(s, pa_path_get_filename(rp), l);
+       pa_xfree(rp);
+       return s;
+   }
+    }
+#endif
 
 #if defined(HAVE_SYS_PRCTL_H) && defined(PR_GET_NAME)
     {