Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2018 00:30:51 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r471248 - head/emulators/virtualbox-ose/files
Message-ID:  <201806010030.w510Upj1026382@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
+     /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806010030.w510Upj1026382>