svn commit: r471248 - head/emulators/virtualbox-ose/files
Jung-uk Kim
jkim at FreeBSD.org
Fri Jun 1 00:30:51 UTC 2018
Author: jkim
Date: Fri Jun 1 00:30:50 2018
New Revision: 471248
URL: https://svnweb.freebsd.org/changeset/ports/471248
Log:
Remove obsolete kludges. All supported versions do not need these hacks.
Furthermore, these hacks break build on head.
PR: 228433
Added:
head/emulators/virtualbox-ose/files/patch-include_iprt_types.h (contents, props changed)
Added: head/emulators/virtualbox-ose/files/patch-include_iprt_types.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/virtualbox-ose/files/patch-include_iprt_types.h Fri Jun 1 00:30:50 2018 (r471248)
@@ -0,0 +1,26 @@
+--- include/iprt/types.h.orig 2018-05-09 16:32:07 UTC
++++ include/iprt/types.h
+@@ -56,22 +56,9 @@ RT_C_DECLS_END
+ # include <sys/types.h>
+
+ # elif defined(RT_OS_FREEBSD) && defined(_KERNEL)
+- /*
+- * Kludge for the FreeBSD kernel:
+- * stddef.h and sys/types.h have slightly different offsetof definitions
+- * when compiling in kernel mode. This is just to make GCC shut up.
+- */
+-# ifndef _STDDEF_H_
+-# undef offsetof
+-# endif
++
+ # include <sys/stddef.h>
+-# ifndef _SYS_TYPES_H_
+-# undef offsetof
+-# endif
+ # include <sys/types.h>
+-# ifndef offsetof
+-# error "offsetof is not defined!"
+-# endif
+
+ # elif defined(RT_OS_FREEBSD) && HC_ARCH_BITS == 64 && defined(RT_ARCH_X86)
+ /*
More information about the svn-ports-head
mailing list