Changeset 40507 in vbox for trunk/include
- Timestamp:
- Mar 16, 2012 10:17:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/string.h
r40123 r40507 33 33 #include <iprt/err.h> /* for VINF_SUCCESS */ 34 34 #if defined(RT_OS_LINUX) && defined(__KERNEL__) 35 RT_C_DECLS_BEGIN35 RT_C_DECLS_BEGIN 36 36 # include <linux/string.h> 37 RT_C_DECLS_END37 RT_C_DECLS_END 38 38 39 39 #elif defined(IN_XF86_MODULE) && !defined(NO_ANSIC) 40 RT_C_DECLS_BEGIN40 RT_C_DECLS_BEGIN 41 41 # include "xf86_ansic.h" 42 RT_C_DECLS_END42 RT_C_DECLS_END 43 43 44 44 #elif defined(RT_OS_FREEBSD) && defined(_KERNEL) 45 RT_C_DECLS_BEGIN46 /** @todo47 * XXX: Very ugly hack to get things build on recent FreeBSD builds. They have48 * memchr now and we need to include param.h to get __FreeBSD_version and make49 * memchr available based on the version below or we can't compile the kernel50 * module on older versions anymore.51 *52 * But including param.h here opens Pandora's box because we clash with a few53 * defines namely PVM and PAGE_SIZE. We can safely undefine PVM here but not54 * PAGE_SIZE because this results in build errors sooner or later. Luckily this55 * define is in a header included by param.h (machine/param.h). We define the56 * guards here to prevent inclusion of it if PAGE_SIZE was defined already.57 *58 * @todo aeichner: Search for an elegant solution and cleanup this mess ASAP!59 */45 RT_C_DECLS_BEGIN 46 /** @todo 47 * XXX: Very ugly hack to get things build on recent FreeBSD builds. They have 48 * memchr now and we need to include param.h to get __FreeBSD_version and make 49 * memchr available based on the version below or we can't compile the kernel 50 * module on older versions anymore. 51 * 52 * But including param.h here opens Pandora's box because we clash with a few 53 * defines namely PVM and PAGE_SIZE. We can safely undefine PVM here but not 54 * PAGE_SIZE because this results in build errors sooner or later. Luckily this 55 * define is in a header included by param.h (machine/param.h). We define the 56 * guards here to prevent inclusion of it if PAGE_SIZE was defined already. 57 * 58 * @todo aeichner: Search for an elegant solution and cleanup this mess ASAP! 59 */ 60 60 # ifdef PAGE_SIZE 61 61 # define _AMD64_INCLUDE_PARAM_H_ … … 71 71 */ 72 72 # define memmove(dst, src, size) bcopy(src, dst, size) 73 RT_C_DECLS_END73 RT_C_DECLS_END 74 74 75 75 #elif defined(RT_OS_SOLARIS) && defined(_KERNEL)
Note:
See TracChangeset
for help on using the changeset viewer.