Re: SO_LINGER used when not HAVE_STRUCT_LINGER_L_LINGER



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





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]