From: Martin Mares Date: Tue, 6 Feb 2007 11:55:17 +0000 (+0100) Subject: for Solaris. X-Git-Tag: v3.0.0~14 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=e49ed04491e36ecf552a121ca2b377d682733ad6;p=pciutils.git for Solaris. --- 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;