I still have this issue when build a debug build of freebsd kmod which has a C++ version of strlen import. Can someone check this in?
On Thu, Jan 20, 2011 at 5:08 AM, Howard Su <[email protected]> wrote: > the problem is that strlen is included in C++ namespace instead of C. > %svn diff include/ > Index: include/iprt/string.h > =================================================================== > --- include/iprt/string.h (revision 35623) > +++ include/iprt/string.h (working copy) > @@ -38,6 +38,7 @@ > # include "xf86_ansic.h" > RT_C_DECLS_END > #elif defined(RT_OS_FREEBSD) && defined(_KERNEL) > +RT_C_DECLS_BEGIN > /** @todo > * XXX: Very ugly hack to get things build on recent FreeBSD builds. They > have > * memchr now and we need to include param.h to get __FreeBSD_version and > make > @@ -65,6 +66,7 @@ > * Defining a macro using bcopy here > */ > # define memmove(dst, src, size) bcopy(src, dst, size) > +RT_C_DECLS_END > #elif defined(RT_OS_SOLARIS) && defined(_KERNEL) > /* > * Same case as with FreeBSD kernel: > > -- > -Howard > -- -Howard _______________________________________________ vbox-dev mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-dev
