I have added this to my personal TODO list. Thanks.
---------------------------------------------------------------------------
Neil Conway wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> 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
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073