Petri Hintukainen pushed to branch master at VideoLAN / libbluray


Commits:
7bc73fd5 by Brad Smith at 2021-10-09T12:57:35+03:00
Fix loading dlopen'd libraries on OpenBSD.

- - - - -


1 changed file:

- src/file/dl_posix.c


Changes:

=====================================
src/file/dl_posix.c
=====================================
@@ -85,11 +85,15 @@ void *dl_dlopen(const char *path, const char *version)
 #endif
 
     for (i = 0 ; search_paths[i] ; ++i) {
+#ifdef __OpenBSD__
+        name = str_printf("%s%s%s", search_paths[i], path, ext);
+#else
         if (version) {
             name = str_printf("%s%s%s.%s", search_paths[i], path, ext, 
version);
         } else {
             name = str_printf("%s%s%s", search_paths[i], path, ext);
         }
+#endif
 
         if (!name) {
             BD_DEBUG(DBG_FILE | DBG_CRIT, "out of memory\n");



View it on GitLab: 
https://code.videolan.org/videolan/libbluray/-/commit/7bc73fd5cbd567ba128eec1f061323bed7a9c5d7

-- 
View it on GitLab: 
https://code.videolan.org/videolan/libbluray/-/commit/7bc73fd5cbd567ba128eec1f061323bed7a9c5d7
You're receiving this email because of your account on code.videolan.org.


_______________________________________________
libbluray-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libbluray-devel

Reply via email to