]> mj.ucw.cz Git - pciutils.git/commitdiff
Don't include <syscall-list.h> on glibc >= 2.1, since it doesn't exist
authorMartin Mares <mj@ucw.cz>
Fri, 23 Oct 1998 10:15:19 +0000 (10:15 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:09:56 +0000 (14:09 +0200)
and we don't need it anyway.

ChangeLog
setpci.c

index aa7947b52bd57b700173c8ed77b62040d00cf054..57667efb31edffcddebc08107f3f2583bbf68f02 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Oct 23 18:59:19 1998  Martin Mares  <mj@albireo.ucw.cz>
+
+       * setpci.c: Don't include <syscall-list.h> with glibc >= 2.1.
+
 Mon Oct 19 21:53:30 1998  Martin Mares  <mj@albireo.ucw.cz>
 
        * Released as version 1.08.
index 310aee60d04ddf66f91050e510c04fb70ad6aa03..36a12a4559852ced5644df433719794f9f250cdc 100644 (file)
--- a/setpci.c
+++ b/setpci.c
@@ -1,5 +1,5 @@
 /*
- *     $Id: setpci.c,v 1.6 1998/10/19 13:37:44 mj Exp $
+ *     $Id: setpci.c,v 1.7 1998/10/23 10:15:20 mj Exp $
  *
  *     Linux PCI Utilities -- Manipulate PCI Configuration Registers
  *
@@ -19,7 +19,7 @@
 #include <asm/byteorder.h>
 
 #include <asm/unistd.h>
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && (__GLIBC_MAJOR__ <= 2 || __GLIBC_MINOR__ < 1)
 #include <syscall-list.h>
 #endif