[Nut-upsdev] Network UPS Tools version 2.0.4-pre1 released
George Ross
gdmr at inf.ed.ac.uk
Mon Jul 10 14:05:10 UTC 2006
> @Georges: the ifndef issue seems strange. Do you have some more info about
> it?
>
> --- drivers/libhid.h.DIST 2006-07-07 10:04:04.000000000 +0100
> +++ drivers/libhid.h 2006-07-07 14:21:40.000000000 +0100
> @@ -41,6 +41,7 @@
> typedef int bool;
> #endif
>
> +#ifdef notdef
> /* ensure these exists (required for Solaris 10) */
> #ifndef u_int16_t
> typedef uint16_t u_int16_t;
> @@ -49,6 +50,7 @@
> #ifndef u_int8_t
> typedef uint8_t u_int8_t;
> #endif
> +#endif
>
> /* Device open modes */
> #define MODE_OPEN 0
As Charles says, FC3 has u_int16_t as a typedef, set up via some
gcc-specific macro, and defines __BIT_TYPES_DEFINED__ to be 1. u_int16_t
isn't there as a #define per se.
libnet-types.h actually has this:
/* Solaris has messed up POSIX nomenclature for these */
#if (__sun__ && __svr4__)
...
typedef uint16_t u_int16_t;
linux/types.h has u_int16_t protected by "#ifndef __BIT_TYPES_DEFINED__",
as do linux/coda.h and netatalk/endian.h, and uint16_t unconditionally.
The same applies, more or less, for uint8_t and u_int8_t.
--
Dr George D M Ross, School of Informatics, University of Edinburgh
Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ
Mail: gdmr at inf.ed.ac.uk Voice: +44 131 650 5147 Fax: +44 131 667 7209
PGP: 1024D/AD758CC5 B91E D430 1E0D 5883 EF6A 426C B676 5C2B AD75 8CC5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 238 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20060710/aff3df19/attachment.pgp
More information about the Nut-upsdev
mailing list