[PATCH] libpciaccess: Fix a compilation error on GNU Hurd platforms.

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Jan 29 09:44:40 PST 2014

This fixes a typo (unAMp instead of unMAp) introduced in the
Windows/Cygwin support patch. This issue has been reported by an
un-named contributor (https://hakzsam.wordpress.com/2014/01/28/libpciaccess-has-now-official-support-for-windowscygwin/comment-page-1/#comment-44.)
It's also possible to separate the Windows/Cygwin support in a new file
cygwin_pci.c for example, but that should duplicate lot of code. That's why
I decided to keep this port in the file x86_pci.c because the code should not
change much more. This port should be stable-enough, so an error like that
shouldn't happen again. I'm sorry for this typo.
 src/x86_pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/x86_pci.c b/src/x86_pci.c
index b938068..1075367 100644
--- a/src/x86_pci.c
+++ b/src/x86_pci.c
@@ -658,7 +658,7 @@ static int
 pci_device_x86_unmap_range(struct pci_device *dev,
     struct pci_device_mapping *map)
-    return pci_device_generic_unamp_range(dev, map);
+    return pci_device_generic_unmap_range(dev, map);

More information about the xorg-devel mailing list