+Wed Sep 2 10:58:01 1998 Martin Mares <mj@albireo.ucw.cz>
+
+ * setpci.c (pread): Recognize glibc 1.99 numbered as 2.0 on the PPC.
+ (thanks to Geert Uytterhoeven for finding this out)
+
Fri Jul 17 10:43:30 1998 Martin Mares <mj@albireo.ucw.cz>
* lspci.c (show_verbose): Print subsystem ID using the new resolver.
/*
- * $Id: setpci.c,v 1.4 1998/06/09 19:22:05 mj Exp $
+ * $Id: setpci.c,v 1.5 1998/09/02 18:47:42 mj Exp $
*
* Linux PCI Utilities -- Manipulate PCI Configuration Registers
*
* As libc doesn't support pread/pwrite yet, we have to call them directly
* or use lseek/read/write instead.
*/
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && !(defined(__powerpc__) && __GLIBC__ == 2 && __GLIBC_MINOR__ == 0)
#ifndef SYS_pread
#define SYS_pread __NR_pread
#endif