From: Alan Coopersmith Date: Thu, 27 Sep 2007 00:26:47 +0000 (-0700) Subject: Fix Solaris build: missing static prototype & typo in variable name X-Git-Tag: android-x86-6.0-r1~206 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=63983e2397d813246b851771c13397ff700e239e;p=android-x86%2Fexternal-libpciaccess.git Fix Solaris build: missing static prototype & typo in variable name --- diff --git a/src/solx_devfs.c b/src/solx_devfs.c index a500327..08de4d0 100644 --- a/src/solx_devfs.c +++ b/src/solx_devfs.c @@ -100,7 +100,8 @@ static int xsvc_fd = -1; #define DEBUGON 0 - +static int pci_device_solx_devfs_map_range(struct pci_device *dev, + struct pci_device_mapping *map); static int pci_device_solx_devfs_read_rom( struct pci_device * dev, void * buffer ); @@ -861,7 +862,7 @@ pci_device_solx_devfs_map_range(struct pci_device *dev, } } - map->memory = mmap(NULL, map->size, prot, MAP_SHARED, xsvs_fd, + map->memory = mmap(NULL, map->size, prot, MAP_SHARED, xsvc_fd, map->base); if (map->memory == MAP_FAILED) { err = errno;