SO_LINGER used when not HAVE_STRUCT_LINGER_L_LINGER

Leonard den Ottolander leonard at den.ottolander.nl
Thu May 25 16:35:17 UTC 2006


Hello Pavel,

On Thu, 2006-05-25 at 02:15 -0400, Pavel Roskin wrote:
> Nothing odd.  HAVE_STRUCT_LINGER_L_LINGER means that there is structure
> linger with field l_linger.  That field (and the whole structure) is not
> used if HAVE_STRUCT_LINGER_L_LINGER is not defined.

So you mean SO_LINGER can be defined although
HAVE_STRUCT_LINGER_L_LINGER is not?

> Put #ifdef SO_LINGER ... #endif around the code you quoted.  Also do the
> same for the declaration.

And disable the call to setsockopt() altogether?

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research





More information about the mc-devel mailing list