<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>Of course i'm willing to test this if you send me a modified src/common/compat.c<br>(i tried to insert your draft myself but i was not successful).<br><br>Thanks.<br><br>Best Regards<br><br><br>&gt; Date: Sat, 18 Oct 2008 15:23:17 -0700<br>&gt; From: coderman@gmail.com<br>&gt; To: or-talk@freehaven.net<br>&gt; Subject: Re: Tor 0.2.1.6-alpha is out<br>&gt; <br>&gt; On Sat, Oct 18, 2008 at 6:15 AM, otto otto &lt;o815@hotmail.com&gt; wrote:<br>&gt; &gt; I get the following error when trying to build tor-0.2.1.6-alpha on Sun<br>&gt; &gt; Solaris 10x86.<br>&gt; &gt; ...<br>&gt; &gt; compat.c: In function `tor_lockfile_lock':<br>&gt; &gt; compat.c:509: warning: implicit declaration of function `flock'<br>&gt; <br>&gt; it looks like the way to fix this is add a configure check for "flock"<br>&gt; and fall back on fcntl when not present.  for example:<br>&gt; <br>&gt; src/common/compat.c: line 508<br>&gt; #ifdef HAVE_FCNTL_H<br>&gt;   struct flock fl;<br>&gt;   fl.l_type   = F_WRLCK;<br>&gt;   fl.l_whence = SEEK_SET;<br>&gt;   fl.l_start  = 0;<br>&gt;   fl.l_len    = 0;<br>&gt;   fl.l_pid    = getpid();<br>&gt;   if (fcntl(fd, F_SETLK, &amp;fl) &lt; 0) {<br>&gt; #else<br>&gt;   if (flock(fd, LOCK_EX|(blocking ? 0 : LOCK_NB)) &lt; 0) {<br>&gt; #endif<br>&gt; <br>&gt; unlock is similar, except you set fl.l_type   = F_UNLCK;<br>&gt; <br>&gt; this is a bit of a patch, and unfortunately not many Tor developers /<br>&gt; supporters use Solaris.  it would be nice to have a fix for this,<br>&gt; perhaps if you would be willing to test some patches i could take a<br>&gt; stab at initial support for the fcntl changes.<br>&gt; <br>&gt; best regards,<br><br /><hr />Zeigen Sie es Ihren Freunden! <a href='http://redirect.gimas.net/?cat=hmtl&n=M0809FotoalbumDE&d=http://spaces.live.com/api.aspx?wx_action=addModule&mkt=de-DE&wx_ru=http%3a%2f%2f%7bspacesapi%3aid%7d.spaces.live.com%2fphotos%2f&wx_targetSite=PersonalSpaces&wxp_url=%2fphotoalbum.aspx' target='_new'>Erstellen  Sie kostenlos Fotoalben und Diashows in Ihrem Space!</a></body>
</html>