[haiku-commits] Re: r37221 - haiku/trunk/src/libs/compat/freebsd_network

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 22 Jun 2010 16:54:45 +0200

Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> On 2010-06-22 at 14:56:59 [+0200], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
> > wrote:
> > ingo_weinhold@xxxxxx wrote:
> > > Log:
> > > Reimplemented _kernel_contigmalloc() to support the physical
> > > address
> > > restrictions.
> > Why not simply remove kernel_contigmalloc() from compat.c instead of
> > this strange construct?
> Unfortunately the FreeBSD headers are not C++ safe and <vm/vm.h>
> (ours) is
> not C safe. Hence the indirection to insulate one from the other.

extern "C" {
#       include <my-favourite-freebsd-header.h>
}

:-)

Bye,
   Axel.


Other related posts: