<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>> Date: Sat, 18 Oct 2008 15:23:17 -0700<br>> From: coderman@gmail.com<br>> To: or-talk@freehaven.net<br>> Subject: Re: Tor 0.2.1.6-alpha is out<br>> <br>> On Sat, Oct 18, 2008 at 6:15 AM, otto otto <o815@hotmail.com> wrote:<br>> > I get the following error when trying to build tor-0.2.1.6-alpha on Sun<br>> > Solaris 10x86.<br>> > ...<br>> > compat.c: In function `tor_lockfile_lock':<br>> > compat.c:509: warning: implicit declaration of function `flock'<br>> <br>> it looks like the way to fix this is add a configure check for "flock"<br>> and fall back on fcntl when not present. for example:<br>> <br>> src/common/compat.c: line 508<br>> #ifdef HAVE_FCNTL_H<br>> struct flock fl;<br>> fl.l_type = F_WRLCK;<br>> fl.l_whence = SEEK_SET;<br>> fl.l_start = 0;<br>> fl.l_len = 0;<br>> fl.l_pid = getpid();<br>> if (fcntl(fd, F_SETLK, &fl) < 0) {<br>> #else<br>> if (flock(fd, LOCK_EX|(blocking ? 0 : LOCK_NB)) < 0) {<br>> #endif<br>> <br>> unlock is similar, except you set fl.l_type = F_UNLCK;<br>> <br>> this is a bit of a patch, and unfortunately not many Tor developers /<br>> supporters use Solaris. it would be nice to have a fix for this,<br>> perhaps if you would be willing to test some patches i could take a<br>> stab at initial support for the fcntl changes.<br>> <br>> 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>