[libbluray-devel] [Git][videolan/libbluray][master] Add OpenBSD Java paths

Petri Hintukainen (@hpi) gitlab at videolan.org
Mon Sep 19 12:53:03 UTC 2022



Petri Hintukainen pushed to branch master at VideoLAN / libbluray


Commits:
13de6de0 by Brad Smith at 2022-09-19T04:37:40-04:00
Add OpenBSD Java paths

- - - - -


1 changed file:

- src/libbluray/bdj/bdj.c


Changes:

=====================================
src/libbluray/bdj/bdj.c
=====================================
@@ -406,6 +406,10 @@ static void *_load_jvm(const char **p_java_home, const char *app_java_home)
                                             "/usr/local/openjdk8",
                                             "/usr/local/openjdk11",
                                             "/usr/local/openjdk17",
+#    elif defined(__OpenBSD__)
+                                            "/usr/local/jdk-1.8.0",
+                                            "/usr/local/jdk-11",
+                                            "/usr/local/jdk-17",
 #    else
                                             "/usr/lib/jvm/default-java",
                                             "/usr/lib/jvm/default",
@@ -533,7 +537,7 @@ static char *_find_libbluray_jar0()
     // pre-defined search paths for libbluray.jar
     static const char * const jar_paths[] = {
 #ifndef _WIN32
-#  ifdef __FreeBSD__
+#  if defined(__FreeBSD__) || defined(__OpenBSD__)
         "/usr/local/share/java/" BDJ_JARFILE,
 #  else
         "/usr/share/java/" BDJ_JARFILE,



View it on GitLab: https://code.videolan.org/videolan/libbluray/-/commit/13de6de0820110a5fb5b4a73d5a7b1a8fa929fc5

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


VideoLAN code repository instance


More information about the libbluray-devel mailing list