I am trying to update the devel/clanlib port to the latest version when
running into this problem.

The patch for unix_socket.cpp looks like this:

==================================================
if (enable && timeout != 0 && interval != 0)
        {
-               setsockopt(handle, SOL_TCP, TCP_KEEPIDLE, (const char *) 
&timeout, sizeof(int));
-               setsockopt(handle, SOL_TCP, TCP_KEEPINTVL, (const char *) 
&interval, sizeof(int));
+               setsockopt(handle, IPPROTO_TCP, TCPTV_KEEP_IDLE, (const char *) 
&timeout, sizeof(int));
+               setsockopt(handle, IPPROTO_TCP, TCPTV_KEEPINTVL, (const char *) 
&interval, sizeof(int));
        }
 }
==================================================

However, when compiling I get the following error:

==================================================
Socket/unix_socket.cpp:146: error: 'hz' was not declared in this scope
==================================================

It seems to be that TCP_KEEPIDLE and TCPTV_KEEP_IDLE use different measures.
Does anybody have an idea how to handle that problem?

Many thanks...

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to