diff --git a/headers/build/HaikuBuildCompatibility.h b/headers/build/HaikuBuildCompatibility.h index 41e5be4f9c..df2dc26b7d 100644 --- a/headers/build/HaikuBuildCompatibility.h +++ b/headers/build/HaikuBuildCompatibility.h @@ -24,6 +24,14 @@ typedef unsigned long haiku_build_addr_t; #define addr_t haiku_build_addr_t +struct sockaddr_storage { + uint8 ss_len; /* total length */ + uint8 ss_family; /* address family */ + uint8 __ss_pad1[6]; /* align to quad */ + uint64 __ss_pad2; /* force alignment to 64 bit */ + uint8 __ss_pad3[112]; /* pad to a total of 128 bytes */ +}; + typedef int socklen_t; #ifndef DEFFILEMODE @@ -131,6 +139,8 @@ extern float roundf(float value); # define B_VECTOR_ICON_TYPE 'VICN' # endif # define B_NOT_SUPPORTED (B_ERROR) +# define B_KERNEL_READ_AREA 0 +# define B_KERNEL_WRITE_AREA 0 #endif #if defined(HAIKU_TARGET_PLATFORM_BONE) || defined(HAIKU_TARGET_PLATFORM_DANO) diff --git a/src/add-ons/kernel/bus_managers/agp_gart/agp_gart.cpp b/src/add-ons/kernel/bus_managers/agp_gart/agp_gart.cpp index 601aef85e9..17aa1d1fe4 100644 --- a/src/add-ons/kernel/bus_managers/agp_gart/agp_gart.cpp +++ b/src/add-ons/kernel/bus_managers/agp_gart/agp_gart.cpp @@ -43,7 +43,6 @@ # define PCI_capabilities_ptr 0x34 # define PCI_status_capabilities 0x0010 # define PCI_cap_id_agp 0x02 -# define B_NOT_SUPPORTED B_ERROR #endif #define TRACE_AGP @@ -629,8 +628,8 @@ Aperture::BindMemory(aperture_memory *memory, addr_t address, size_t size) TRACE("bind %ld bytes at %lx\n", size, base); for (addr_t offset = 0; offset < size; offset += B_PAGE_SIZE) { + addr_t physicalAddress = 0; status_t status; - addr_t physicalAddress; if (!physical) { physical_entry entry;