From e49ed04491e36ecf552a121ca2b377d682733ad6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 6 Feb 2007 12:55:17 +0100 Subject: [PATCH] for Solaris. --- ChangeLog | 5 +++++ lib/configure | 1 + lib/types.h | 7 ++++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3d536ba..3e673bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-06 Martin Mares + + * lib/types.h, lib/configure: Solaris should use to get precise + integer types. + 2007-02-04 Martin Mares * lspci.c: alloca() needs . diff --git a/lib/configure b/lib/configure index 57c5509..77393a5 100755 --- a/lib/configure +++ b/lib/configure @@ -67,6 +67,7 @@ case $sys in exit 1 ;; esac + echo >>$c '#define PCI_HAVE_STDINT_H' ;; freebsd) echo_n " fbsd-device" diff --git a/lib/types.h b/lib/types.h index 4808f56..5191d15 100644 --- a/lib/types.h +++ b/lib/types.h @@ -1,7 +1,7 @@ /* * The PCI Library -- Types and Format Strings * - * Copyright (c) 1997--2005 Martin Mares + * Copyright (c) 1997--2007 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -14,6 +14,11 @@ typedef unsigned __int8 u8; typedef unsigned __int16 u16; typedef unsigned __int32 u32; +#elif defined(PCI_HAVE_STDINT_H) +#include +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; #else typedef u_int8_t u8; typedef u_int16_t u16; -- 2.39.2