2.3.47 compile error: pci.h: `ENODEV' undeclared

From: Russell King (rmk@arm.linux.org.uk)
Date: Mon Feb 21 2000 - 18:35:47 EST


Hi,

The following patch fixes the:

include/linux/pci.h:608: `ENODEV' undeclared (first use this function)

error that including pci.h gives:

--- linux/include/linux/pci.h.old Mon Feb 21 23:19:29 2000
+++ linux/include/linux/pci.h Mon Feb 21 23:19:40 2000
@@ -285,6 +285,7 @@
 #include <linux/config.h>
 #include <linux/ioport.h>
 #include <linux/list.h>
+#include <linux/errno.h>
 
 /* This defines the direction arg to the DMA mapping routines. */
 #define PCI_DMA_BIDIRECTIONAL 0

   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
  | +-+-+ --- -+-
  / | THE developer of ARM Linux |+| /|\
 / | | | --- |
    +-+-+ ------------------------------------------------- /\\\ |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:29 EST