mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
Remove obsolete kludges. All supported versions do not need these hacks.
Furthermore, these hacks break build on head. PR: 228433
This commit is contained in:
parent
7470a5775e
commit
d864952f7d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=471248
26
emulators/virtualbox-ose/files/patch-include_iprt_types.h
Normal file
26
emulators/virtualbox-ose/files/patch-include_iprt_types.h
Normal file
@ -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)
|
||||
/*
|
Loading…
Reference in New Issue
Block a user