[vbox-dev] NetBSD patch 0016: Add NetBSD support in VBoxCAPIGlue

Kamil Rytarowski n54 at gmx.com
Sat Aug 13 15:34:56 GMT 2016


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
-------------- next part --------------
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__)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20160813/b4f42020/attachment.sig>


More information about the vbox-dev mailing list