patch-2.4.23 linux-2.4.23/include/asm-ia64/sn/pci/pic.h

Next file: linux-2.4.23/include/asm-ia64/sn/serialio.h
Previous file: linux-2.4.23/include/asm-ia64/sn/pci/pciio.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/include/asm-ia64/sn/pci/pic.h linux-2.4.23/include/asm-ia64/sn/pci/pic.h
@@ -72,9 +72,6 @@
 extern "C" {
 #endif
 
-// #include <sys/types.h>
-#include <asm/sn/pci/pciio.h>
-
 
 /*********************************************************************
  *    bus provider function table
@@ -88,7 +85,13 @@
  *	pcibr, we can go directly to this ops table.
  */
 
+#ifdef __KERNEL__
+#include <linux/config.h>
+#include <asm/sn/pci/pciio.h>
 extern pciio_provider_t pci_pic_provider;
+#else
+#include <linux/config.h>
+#endif
 
 
 /*********************************************************************

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)