* Added B_NOT_SUPPORTED, B_KERNEL_READ_AREA, and B_KERNEL_WRITE_AREA to

HaikuBuildCompatibility.h; this fixes building agp_gart and the intel
  extreme driver for BeOS.
* Added sockaddr_storage to HaikuBuildCompatibility.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23823 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-02-02 12:18:55 +00:00
parent 45b17b80d1
commit f033aee165
2 changed files with 11 additions and 2 deletions
+10
View File
@@ -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)
@@ -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;