<br><br><div><span class="gmail_quote">2006/7/10, George Ross <<a href="mailto:gdmr@inf.ed.ac.uk">gdmr@inf.ed.ac.uk</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> @Georges: the ifndef issue seems strange. Do you have some more info about<br>> it?<br>><br>> --- drivers/libhid.h.DIST 2006-07-07 10:04:04.000000000 +0100<br>> +++ drivers/libhid.h 2006-07-07 14:21:
40.000000000 +0100<br>> @@ -41,6 +41,7 @@<br>> typedef int bool;<br>> #endif<br>><br>> +#ifdef notdef<br>> /* ensure these exists (required for Solaris 10) */<br>> #ifndef u_int16_t<br>> typedef uint16_t u_int16_t;
<br>> @@ -49,6 +50,7 @@<br>> #ifndef u_int8_t<br>> typedef uint8_t u_int8_t;<br>> #endif<br>> +#endif<br>><br>> /* Device open modes */<br>> #define MODE_OPEN 0<br><br>As Charles says, FC3 has u_int16_t as a typedef, set up via some
<br>gcc-specific macro, and defines __BIT_TYPES_DEFINED__ to be 1. u_int16_t<br>isn't there as a #define per se.<br><br>libnet-types.h actually has this:<br><br> /* Solaris has messed up POSIX nomenclature for these */
<br> #if (__sun__ && __svr4__)<br> ...<br> typedef uint16_t u_int16_t;<br><br>linux/types.h has u_int16_t protected by "#ifndef __BIT_TYPES_DEFINED__",<br>as do linux/coda.h and netatalk/endian.h, and uint16_t unconditionally.
<br><br>The same applies, more or less, for uint8_t and u_int8_t.</blockquote><div><br>I've just replaced this in Testing by the same as in trunk:<br><br>#ifdef HAVE_STDINT_H<br>#include <stdint.h> /* for uint16_t */
<br>#endif<br><br>2.0.4-pre2 will be shipped with this, so a test on your side will be welcome.<br></div></div><br>Arnaud<br>-- <br>Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt<br>Network UPS Tools (NUT) Project Leader -
<a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://people.debian.org/~aquette/">http://people.debian.org/~aquette/</a><br>OpenSource Developer - <a href="http://arnaud.quette.free.fr/">
http://arnaud.quette.free.fr/</a>