[Nut-upsdev] Network UPS Tools version 2.0.4-pre1 released
Arnaud Quette
aquette.dev at gmail.com
Thu Jul 13 14:18:34 UTC 2006
2006/7/10, George Ross <gdmr at inf.ed.ac.uk>:
>
> > @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.
I've just replaced this in Testing by the same as in trunk:
#ifdef HAVE_STDINT_H
#include <stdint.h> /* for uint16_t */
#endif
2.0.4-pre2 will be shipped with this, so a test on your side will be
welcome.
Arnaud
--
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20060713/086c983b/attachment.htm
More information about the Nut-upsdev
mailing list