From 0df54d980737b7c4bb07aa4ac29e1e7689a6019b Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 15 Jul 2009 09:09:48 +0100 Subject: minios: switch to C99 integer types This is a necessary step to make minios build on NetBSD. Signed-off-by: Christoph Egger --- stubdom/pciutils.patch | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'stubdom') diff --git a/stubdom/pciutils.patch b/stubdom/pciutils.patch index 189b7ff719..bdc72cf590 100644 --- a/stubdom/pciutils.patch +++ b/stubdom/pciutils.patch @@ -54,22 +54,22 @@ diff -urN pciutils-2.2.9.orig/lib/access.c pciutils-2.2.9/lib/access.c all: $(PCILIB) $(PCILIBPC) $(PCILIB): $(OBJS) ---- pciutils-2.2.9.orig/lib/types.h 2007-09-03 09:44:15.000000000 +0100 -+++ pciutils-2.2.9/lib/types.h 2008-07-01 12:17:08.396156000 +0100 -@@ -17,9 +17,13 @@ - typedef DWORD u32; - #elif defined(PCI_HAVE_STDINT_H) - #include -+#ifdef PCI_OS_MINIOS -+#include -+#else +--- pciutils-2.2.9.orig/lib/types.h 2009-07-14 18:18:59.000000000 +0200 ++++ pciutils-2.2.9/lib/types.h 2009-07-14 18:19:16.000000000 +0200 +@@ -20,10 +20,12 @@ typedef DWORD u32; typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; -+#endif ++typedef uint64_t u64; #else typedef u_int8_t u8; typedef u_int16_t u16; + typedef u_int32_t u32; ++typedef u_int64_t u64; + #endif + + #ifdef PCI_HAVE_64BIT_ADDRESS + --- pciutils-2.2.9.orig/lib/minios.c 1970-01-01 01:00:00.000000000 +0100 +++ pciutils-2.2.9/lib/minios.c 2008-07-01 12:31:40.554260000 +0100 @@ -0,0 +1,113 @@ -- cgit v1.2.3