Hi Paul,<br><br><div class="gmail_quote">2010/12/16 Paul Fertser<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>On Thu, Dec 16, 2010 at 01:16:33PM +0100, Frédéric Bohé wrote:<br>


&gt; &gt; This adds defines for usleep (windows lacks that) and also missing<br>
&gt; &gt; define for SVC_EVENT.<br>
&gt;<br>
&gt; I have no problem compiling with usleep here. Can you give me the error<br>
&gt; string you get on this ?<br>
<br>
</div>Undefined reference of course. Ok, where does your usleep implementation come<br>
from? In fact i tried to google about it but wasn&#39;t convinced that newer mingw<br>
has that. Is it really available from mingw or do i need some additional<br>
library?<br>
<div><br>
&gt; As a side note, beware that your implementation of usleep could lead to<br>
&gt; call Sleep(0) (immediate return) if n&lt;1000. usleep is supposed to round<br>
&gt; up the time spent depending on system activity and timers granularity.<br>
<br>
</div>Indeed :)<br>
<div><br>
&gt; Concerning SVC_EVENT, it is declared in winevent.h which is a generated<br>
&gt; file from <a href="http://winevent.mc" target="_blank">winevent.mc</a> as well as a DLL required for the Windows Event<br>
&gt; log. Here is how it works:<br>
&gt;<br>
&gt; windmc <a href="http://winevent.mc" target="_blank">winevent.mc</a><br>
&gt; windres winevent.rc winevent.o<br>
&gt; dllwrap --output-lib=libwinevent.a --dllname=winevent.dll<br>
&gt; --driver-name=gcc winevent.o<br>
&gt;<br>
&gt; Note that this should be automated soon in the Makefile.<br>
<br>
</div>Ah, ok, i had no idea about these complicated moves, so i was rather puzzled :)<br></blockquote><div><br>this is now available in r2743.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div>
&gt; &gt; Thanks again and happy hacking :)<br>
&gt;<br>
&gt; Thanks for your interest and do not hesitate to send your feedback on<br>
&gt; working or non working drivers.<br>
<br>
</div>Will do soon with serial megatec, thanks.<br></blockquote></div><br>prefer to test using blazer_ser since it will replace the megatec drivers by 2.6.0 (so very soon!)<br clear="all"><br>cheers,<br>Arnaud<br>-- <br>
Linux / Unix Expert R&amp;D - Eaton - <a href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>
Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>

Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br>