]> xenbits.xensource.com Git - people/liuw/stubdom.git/commitdiff
stubdom pcilib: define endianness for minios
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 14 Oct 2009 07:33:11 +0000 (08:33 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 14 Oct 2009 07:33:11 +0000 (08:33 +0100)
Include endian.h for MiniOS.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
pciutils.patch

index bdc72cf590630614216b23a35a4a94d66f8e883c..0190428f269b1f206dcb216e12d26ef7adfc1001 100644 (file)
@@ -297,3 +297,17 @@ diff -urN pciutils-2.2.9.orig/lib/access.c pciutils-2.2.9/lib/access.c
  }
  
  static int
+diff -uNpbE -uNpbEr pciutils-2.2.9.orig/lib/sysdep.h pciutils-2.2.9/lib/sysdep.h
+--- pciutils-2.2.9.orig/lib/sysdep.h   2007-02-06 12:00:18.000000000 +0000
++++ pciutils-2.2.9/lib/sysdep.h        2009-07-22 16:26:30.000000000 +0100
+@@ -32,6 +32,10 @@ typedef u16 word;
+ #else
++#ifdef PCI_OS_MINIOS
++#include <machine/endian.h>
++#endif
++
+ #ifdef PCI_OS_LINUX
+ #include <endian.h>
+ #define BYTE_ORDER __BYTE_ORDER