]> mj.ucw.cz Git - pciutils.git/commitdiff
Don't include <asm/io.h> with glibc.
authorMartin Mares <mj@ucw.cz>
Mon, 24 Jan 2000 15:36:09 +0000 (15:36 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:10:38 +0000 (14:10 +0200)
Older versions of glibc include it directly from <sys/io.h>, the newer
ones define the I/O port access stuff themselves, colliding with <asm/io.h>.

lib/i386-ports.c

index 0e1acaef07ccbf748afd62e378eb24d85a98ac76..a78d98b6f1c005dad3fdf38cd27d460770f43cb5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     $Id: i386-ports.c,v 1.1 1999/01/22 21:05:26 mj Exp $
+ *     $Id: i386-ports.c,v 1.2 2000/01/24 15:36:09 mj Exp $
  *
  *     The PCI Library -- Direct Configuration access via i386 Ports
  *
@@ -8,11 +8,12 @@
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
-#include <asm/io.h>
 #include <unistd.h>
 
 #ifdef __GLIBC__
 #include <sys/io.h>
+#else
+#include <asm/io.h>
 #endif
 
 #include "internal.h"