diff options
Diffstat (limited to 'multimedia/obs-studio/files/patch-libobs_util_platform-nix.c')
-rw-r--r-- | multimedia/obs-studio/files/patch-libobs_util_platform-nix.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/multimedia/obs-studio/files/patch-libobs_util_platform-nix.c b/multimedia/obs-studio/files/patch-libobs_util_platform-nix.c deleted file mode 100644 index 9d0e30e2af8f..000000000000 --- a/multimedia/obs-studio/files/patch-libobs_util_platform-nix.c +++ /dev/null @@ -1,22 +0,0 @@ ---- libobs/util/platform-nix.c.orig 2020-03-19 16:51:06 UTC -+++ libobs/util/platform-nix.c -@@ -40,6 +40,7 @@ - #include <sys/socket.h> - #include <sys/sysctl.h> - #include <sys/user.h> -+#include <sys/sysctl.h> - #include <unistd.h> - #include <libprocstat.h> - #else -@@ -275,7 +276,11 @@ char *os_get_program_data_path_ptr(const char *name) - char *os_get_executable_path_ptr(const char *name) - { - char exe[PATH_MAX]; -+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) -+ ssize_t count = readlink("/proc/curproc/file", exe, PATH_MAX); -+#else - ssize_t count = readlink("/proc/self/exe", exe, PATH_MAX); -+#endif - const char *path_out = NULL; - struct dstr path; - |