pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
virtualbox: Fix further building on NetBSD
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sat Jul 9 17:21:21 2016 +0200
Changeset: 28c610821aaf1714bd7e3df3446260d4341c0dc4
Modified Files:
virtualbox/distinfo
virtualbox/patches/patch-include_iprt_time.h
Log Message:
virtualbox: Fix further building on NetBSD
This code:
if defined(RTTIME_INCL_TIMEVAL) || defined(_STRUCT_TIMEVAL) || defined(_SYS__TIMEVAL_H_) || defined(_SYS_TIME_H) || defined(_TIMEVAL_H_) || defined(_SYS_TIME_H) || defined(_TIMEVAL) || defined(_LINUX_TIME_H)
is a kludge to detect whether an OS header defining struct timeval was included.
On NetBSD it's defined(_SYS_TIME_H_)
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=28c610821aaf1714bd7e3df3446260d4341c0dc4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
virtualbox/distinfo | 2 +-
virtualbox/patches/patch-include_iprt_time.h | 10 +++-------
2 files changed, 4 insertions(+), 8 deletions(-)
diffs:
diff --git a/virtualbox/distinfo b/virtualbox/distinfo
index 534d753..1985425 100644
--- a/virtualbox/distinfo
+++ b/virtualbox/distinfo
@@ -12,7 +12,7 @@ SHA1 (patch-include_VBox_ostypes.h) = fd452f95c79b2e5c98a048af21f6561c80adebc5
SHA1 (patch-include_VBox_param.h) = 1efcacb3e7890344dc132fee85b945bf9baa9614
SHA1 (patch-include_VBox_usb.h) = c16d333f6dee240f1d4147cc49c04451dfb776a7
SHA1 (patch-include_iprt_string.h) = dd74a70d35be03f480bbb42db170cf7c5f583e4e
-SHA1 (patch-include_iprt_time.h) = 82e31a8c80606ae6f152e2de9f90f02aad4991b7
+SHA1 (patch-include_iprt_time.h) = 9940a7b65300990d2fbeb7629813323e8b7971c5
SHA1 (patch-kBuild_header.kmk) = b08bde255f27e9e62d15c649b16a34d72b4d79f6
SHA1 (patch-src_VBox_Additions_Makefile.kmk) = e47ebb5cbfb51d103f76e1316b18e835fb5d6b1d
SHA1 (patch-src_VBox_Additions_common_VBoxGuestLib_VBoxGuestR3Lib.cpp) = 99138a3a7abd00e74c50f0fdc841ac7984e11a08
diff --git a/virtualbox/patches/patch-include_iprt_time.h b/virtualbox/patches/patch-include_iprt_time.h
index 1345c3d..639c552 100644
--- a/virtualbox/patches/patch-include_iprt_time.h
+++ b/virtualbox/patches/patch-include_iprt_time.h
@@ -2,20 +2,16 @@ $NetBSD$
--- include/iprt/time.h.orig 2016-03-04 19:23:02.000000000 +0000
+++ include/iprt/time.h
-@@ -353,7 +353,11 @@ DECLINLINE(void) RTTimeSpecGetSecondsAnd
+@@ -353,7 +353,7 @@ DECLINLINE(void) RTTimeSpecGetSecondsAnd
/* PORTME: Add struct timeval guard macro here. */
-#if defined(RTTIME_INCL_TIMEVAL) || defined(_STRUCT_TIMEVAL) || defined(_SYS__TIMEVAL_H_) || defined(_SYS_TIME_H) || defined(_TIMEVAL) || defined(_LINUX_TIME_H)
-+// HACK TO GET RTTimeSpecGetTimeval defined on NetBSD
-+#if defined(RTTIME_INCL_TIMEVAL) || defined(_STRUCT_TIMEVAL) || defined(_SYS__TIMEVAL_H_) || defined(_SYS_TIME_H) || defined(_TIMEVAL) || defined(_LINUX_TIME_H) || defined(__NetBSD__)
-+#if defined(__NetBSD__)
-+#include <sys/time.h>
-+#endif
++#if defined(RTTIME_INCL_TIMEVAL) || defined(_STRUCT_TIMEVAL) || defined(_SYS__TIMEVAL_H_) || defined(_SYS_TIME_H) || defined(_TIMEVAL) || defined(_LINUX_TIME_H) || defined(_SYS_TIME_H_)
/**
* Gets the time as POSIX timeval.
*
-@@ -1031,4 +1035,3 @@ RTDECL(uint64_t) RTTimeProgramStartNanoT
+@@ -1031,4 +1031,3 @@ RTDECL(uint64_t) RTTimeProgramStartNanoT
RT_C_DECLS_END
#endif
Home |
Main Index |
Thread Index |
Old Index