<br><br><div><span class="gmail_quote">2006/7/10, George Ross &lt;<a href="mailto:gdmr@inf.ed.ac.uk">gdmr@inf.ed.ac.uk</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; @Georges: the ifndef issue seems strange. Do you have some more info about<br>&gt; it?<br>&gt;<br>&gt; --- drivers/libhid.h.DIST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2006-07-07 10:04:04.000000000 +0100<br>&gt; +++ drivers/libhid.h&nbsp;&nbsp;&nbsp;&nbsp;2006-07-07 14:21:
40.000000000 +0100<br>&gt; @@ -41,6 +41,7 @@<br>&gt;&nbsp;&nbsp;typedef int bool;<br>&gt;&nbsp;&nbsp;#endif<br>&gt;<br>&gt; +#ifdef notdef<br>&gt;&nbsp;&nbsp;/* ensure these exists (required for Solaris 10) */<br>&gt;&nbsp;&nbsp;#ifndef u_int16_t<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typedef uint16_t u_int16_t;
<br>&gt; @@ -49,6 +50,7 @@<br>&gt;&nbsp;&nbsp;#ifndef u_int8_t<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typedef uint8_t u_int8_t;<br>&gt;&nbsp;&nbsp;#endif<br>&gt; +#endif<br>&gt;<br>&gt;&nbsp;&nbsp;/* Device open modes */<br>&gt;&nbsp;&nbsp;#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.&nbsp;&nbsp;u_int16_t<br>isn't there as a #define per se.<br><br>libnet-types.h actually has this:<br><br>&nbsp;&nbsp; /* Solaris has messed up POSIX nomenclature for these */
<br>&nbsp;&nbsp; #if (__sun__ &amp;&amp; __svr4__)<br>&nbsp;&nbsp; ...<br>&nbsp;&nbsp; typedef uint16_t u_int16_t;<br><br>linux/types.h has u_int16_t protected by &quot;#ifndef __BIT_TYPES_DEFINED__&quot;,<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 &lt;stdint.h&gt; /* 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&amp;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>