I have added this to my personal TODO list. Thanks.
---------------------------------------------------------------------------
Neil Conway wrote:
> Bruce Momjian <[EMAIL PROTECTED]> writes:
> > We define the variable only on Win32/BeOS. Any ideas on how to do this
> > better?
>
> int
> set_non_blocking(some_type socket)
> {
> int ret;
>
> #ifdef SOME_UNIX_PLATFORM
> ret = ...;
> #else
>
> #ifdef SOME_WINDOWS_PLATFORM
> ret = ...;
> #else
> ret = ...;
> #endif
>
> return ret;
> }
>
> This function shouldn't be in the critical path for anything, so ISTM
> that we can hide this platform-specific ugliness inside a function
> without any harm.
>
> -Neil
>
--
Bruce Momjian | http://candle.pha.pa.us
[EMAIL PROTECTED] | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly