From owner-svn-ports-all@freebsd.org Fri Jun 1 00:30:51 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C20B0FDCB1F; Fri, 1 Jun 2018 00:30:51 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7521969733; Fri, 1 Jun 2018 00:30:51 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 576E221799; Fri, 1 Jun 2018 00:30:51 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w510Upcu026396; Fri, 1 Jun 2018 00:30:51 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w510Upj1026382; Fri, 1 Jun 2018 00:30:51 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201806010030.w510Upj1026382@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Fri, 1 Jun 2018 00:30:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r471248 - head/emulators/virtualbox-ose/files X-SVN-Group: ports-head X-SVN-Commit-Author: jkim X-SVN-Commit-Paths: head/emulators/virtualbox-ose/files X-SVN-Commit-Revision: 471248 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2018 00:30:51 -0000 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 + + # 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 +-# ifndef _SYS_TYPES_H_ +-# undef offsetof +-# endif + # include +-# ifndef offsetof +-# error "offsetof is not defined!" +-# endif + + # elif defined(RT_OS_FREEBSD) && HC_ARCH_BITS == 64 && defined(RT_ARCH_X86) + /*