diff --git a/src/add-ons/kernel/bus_managers/firewire/fwohci.cpp b/src/add-ons/kernel/bus_managers/firewire/fwohci.cpp index 8a69683ae8..04ae2d2196 100644 --- a/src/add-ons/kernel/bus_managers/firewire/fwohci.cpp +++ b/src/add-ons/kernel/bus_managers/firewire/fwohci.cpp @@ -150,7 +150,7 @@ static void fwohci_task_dma(void *); /* * memory allocated for DMA programs */ -#define DMA_PROG_ALLOC (8 * PAGE_SIZE) +#define DMA_PROG_ALLOC (8 * B_PAGE_SIZE) #define NDB FWMAXQUEUE diff --git a/src/add-ons/kernel/drivers/audio/echo/generic/CDaffyDuck.cpp b/src/add-ons/kernel/drivers/audio/echo/generic/CDaffyDuck.cpp index ec4f1b4610..d332cc6c9d 100644 --- a/src/add-ons/kernel/drivers/audio/echo/generic/CDaffyDuck.cpp +++ b/src/add-ons/kernel/drivers/audio/echo/generic/CDaffyDuck.cpp @@ -111,7 +111,7 @@ CDaffyDuck::~CDaffyDuck() { if (NULL != m_pDuckPage) - m_pOsSupport->FreePhysPageBlock( PAGE_SIZE, m_pDuckPage); + m_pOsSupport->FreePhysPageBlock( B_PAGE_SIZE, m_pDuckPage); } // CDaffyDuck::~CDaffyDuck() @@ -823,7 +823,7 @@ CDaffyDuck * CDaffyDuck::MakeDaffyDuck(COsSupport *pOsSupport) PHYS_ADDR PhysAddr; PPAGE_BLOCK pPageBlock; - Status = pOsSupport->AllocPhysPageBlock( PAGE_SIZE, pPageBlock); + Status = pOsSupport->AllocPhysPageBlock( B_PAGE_SIZE, pPageBlock); if (ECHOSTATUS_OK != Status) { ECHO_DEBUGPRINTF(("CDaffyDuck::CDaffyDuck - duck entry page block malloc failed\n")); diff --git a/src/libs/compat/freebsd_network/Jamfile b/src/libs/compat/freebsd_network/Jamfile index fff177a61b..3d7b496a88 100644 --- a/src/libs/compat/freebsd_network/Jamfile +++ b/src/libs/compat/freebsd_network/Jamfile @@ -10,7 +10,7 @@ UseHeaders $(HAIKU_PRIVATE_KERNEL_HEADERS) : true ; Includes [ FGristFiles kernel_c++_structs.h ] : kernel_c++_struct_sizes.h ; -SubDirCcFlags [ FDefines _KERNEL=1 ] ; +SubDirCcFlags [ FDefines _KERNEL=1 _XOPEN_SOURCE ] ; KernelStaticLibrary libfreebsd_network.a : bus.cpp