pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

virtualbox-svn: Fix src/VBox/Runtime/VBox/log-vbox.cpp



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Aug 7 04:34:00 2016 +0200
Changeset:	3f0eadd30d89d79bc8a4652dfd88610530ae5343

Modified Files:
	virtualbox-svn/distinfo
Added Files:
	virtualbox-svn/patches/patch-src_VBox_Runtime_VBox_log-vbox.cpp

Log Message:
virtualbox-svn: Fix src/VBox/Runtime/VBox/log-vbox.cpp

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3f0eadd30d89d79bc8a4652dfd88610530ae5343

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 virtualbox-svn/distinfo                            |  1 +
 .../patch-src_VBox_Runtime_VBox_log-vbox.cpp       | 41 ++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diffs:
diff --git a/virtualbox-svn/distinfo b/virtualbox-svn/distinfo
index 7f7c1ff..823e441 100644
--- a/virtualbox-svn/distinfo
+++ b/virtualbox-svn/distinfo
@@ -8,4 +8,5 @@ SHA1 (patch-configure) = 32a205a07cacf12300cd718131153d7a601e48c1
 SHA1 (patch-include_iprt_string.h) = 14a1b41e8a75140f1493d9f78213a5d8df56cab6
 SHA1 (patch-src_VBox_Installer_darwin_VirtualBox_postflight) = d073de54d5de4f61e154003e8e2acc039b6e059b
 SHA1 (patch-src_VBox_Installer_darwin_VirtualBox_preflight) = f24f7d6dd449e6ad664b8e5a8f5861dd7e0f13e8
+SHA1 (patch-src_VBox_Runtime_VBox_log-vbox.cpp) = b1f95bd11977888629a945fc2547b6d3bb8c2e72
 SHA1 (patch-src_VBox_VMM_testcase_mkdsk.sh) = d949a78be396466636aa2c8d92e6ecf76725f336
diff --git a/virtualbox-svn/patches/patch-src_VBox_Runtime_VBox_log-vbox.cpp b/virtualbox-svn/patches/patch-src_VBox_Runtime_VBox_log-vbox.cpp
new file mode 100644
index 0000000..4ec37e9
--- /dev/null
+++ b/virtualbox-svn/patches/patch-src_VBox_Runtime_VBox_log-vbox.cpp
@@ -0,0 +1,41 @@
+$NetBSD$
+
+--- src/VBox/Runtime/VBox/log-vbox.cpp.orig	2016-08-05 16:53:56.000000000 +0000
++++ src/VBox/Runtime/VBox/log-vbox.cpp
+@@ -131,10 +131,12 @@
+ #  include <iprt/win/windows.h>
+ # elif defined(RT_OS_LINUX)
+ #  include <unistd.h>
+-# elif defined(RT_OS_FREEBSD)
++# elif defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
+ #  include <sys/param.h>
+ #  include <sys/sysctl.h>
+-#  include <sys/user.h>
++#  if  defined(RT_OS_FREEBSD)
++#    include <sys/user.h>
++#  endif
+ #  include <stdlib.h>
+ #  include <unistd.h>
+ # elif defined(RT_OS_HAIKU)
+@@ -647,13 +649,20 @@ RTDECL(PRTLOGGER) RTLogDefaultInit(void)
+             RTLogLoggerEx(pLogger, 0, ~0U, "Commandline: %.64s\n", info.args);
+         }
+ 
+-#  elif defined(RT_OS_FREEBSD)
++#  elif defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
+         /* Retrieve the required length first */
+         int aiName[4];
++#  if defined(RT_OS_FREEBSD)
+         aiName[0] = CTL_KERN;
+         aiName[1] = KERN_PROC;
+         aiName[2] = KERN_PROC_ARGS;     /* Introduced in FreeBSD 4.0 */
+         aiName[3] = getpid();
++#  elif defined(RT_OS_NETBSD)
++        aiName[0] = CTL_KERN;
++        aiName[1] = KERN_PROC_ARGS;
++        aiName[3] = getpid();
++        aiName[2] = KERN_PROC_ARGV;
++#  endif
+         size_t cchArgs = 0;
+         int rcBSD = sysctl(aiName, RT_ELEMENTS(aiName), NULL, &cchArgs, NULL, 0);
+         if (cchArgs > 0)


Home | Main Index | Thread Index | Old Index