> 2008-09-11  Yoann Vandoorselaere  <[EMAIL PROTECTED]>
>             Bruno Haible  <[EMAIL PROTECTED]>
> 
>       * lib/glthread/cond.h (ETIMEDOUT): Define to a fallback value if not
>       defined by <errno.h>.
> 
> + /* Possible return value of glthread_cond_timedwait.
> +    Use a random value as fallback replacement.  */
> + # ifndef ETIMEDOUT
> + #  define ETIMEDOUT 1789
> + # endif

I propose instead 60, or better (WSAETIMEDOUT - 10000).  So it would be,

# ifndef ETIMEDOUT
#  ifdef WSAETIMEDOUT
#   define ETIMEDOUT (WSAETIMEDOUT - 10000)
#  else
#   define ETIMEDOUT 1789
#  endif
# endif

The reason is that I have a pending patch to provide winsock wrappers
that are more compatible with POSIX, and I'm using this convention for
missing error codes, because for example WSAEBADF == EBADF + 10000 already.

Paolo


Reply via email to