Add NetBSD support in VBoxCAPIGlue Shared libraries (*.so) are named similarly like in most other popular Unices.
Keep the default upstream prefix for library in /usr/local. This value will be overwritten with a dynamic value by pkgsrc. This patch is MIT-licensed. Author: Kamil Rytarowski
Add NetBSD support in VBoxCAPIGlue
Shared libraries (*.so) are named similarly like in most other popular Unices.
Keep the default upstream prefix for library in /usr/local.
This value will be overwritten with a dynamic value by pkgsrc.
This patch is MIT-licensed.
Author: Kamil Rytarowski
Index: src/VBox/Main/cbinding/VBoxCAPIGlue.c
===================================================================
--- src/VBox/Main/cbinding/VBoxCAPIGlue.c (wersja 63343)
+++ src/VBox/Main/cbinding/VBoxCAPIGlue.c (kopia robocza)
@@ -51,7 +51,7 @@
/*********************************************************************************************************************************
* Defined Constants And Macros
*
*********************************************************************************************************************************/
-#if defined(__linux__) || defined(__linux_gnu__) || defined(__sun__) ||
defined(__FreeBSD__)
+#if defined(__linux__) || defined(__linux_gnu__) || defined(__sun__) ||
defined(__FreeBSD__) || defined(__NetBSD__)
# define DYNLIB_NAME "VBoxXPCOMC.so"
#elif defined(__APPLE__)
# define DYNLIB_NAME "VBoxXPCOMC.dylib"
@@ -278,7 +278,7 @@
#elif defined(__APPLE__)
if (tryLoadLibrary("/Applications/VirtualBox.app/Contents/MacOS", 1) == 0)
return 0;
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__)
if (tryLoadLibrary("/usr/local/lib/virtualbox", 1) == 0)
return 0;
#elif defined(__OS2__)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ vbox-dev mailing list [email protected] https://www.virtualbox.org/mailman/listinfo/vbox-dev
